#240297

A color in the Violet family

#240297 is a color in the Violet family: RGB(36, 2, 151), HSL(254°, 97%, 30%), CMYK(76%, 99%, 0%, 41%). Closest named color: darkblue. Contrast is 13.72:1 on white and 1.53:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#240297
RGBrgb(36 2 151)
RGB (legacy)rgb(36, 2, 151)
RGB %rgb(14% 1% 59%)
HSLhsl(254 97% 30%)
HSV / HSBhsv(254, 99%, 59%)
HWBhwb(254 1% 41%)
CMYKcmyk(76%, 99%, 0%, 41%)
CIELAB (D50)lab(17.05 46.71 -72)
LCHlch(17.05 85.83 302.97)
OKLaboklab(0.3233 0.0167 -0.2011)
OKLCHoklch(0.3233 0.2018 274.74)
Decimal2359959

Properties

Color ToneViolet
Closest named colordarkblue ΔE 5.2
Closest web-safe color#330099
Hue254°
Saturation (HSL / HSV)97% / 99%
Lightness (HSL)30%
Brightness or Value (HSV)59%
Luminance (Rec.601 / Rec.709)11% / 8%
Relative luminance (WCAG)0.0265
Red / Green / Blue36 / 2 / 151

WCAG 2.2 Contrast Ratio

On White (#ffffff)
13.72:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.53:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 98.2 / 0 · As background with white / black text: Lc -101.6 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #240297;
  --color-brand-oklch: oklch(32.33% 0.2018 274.74);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(36 2 151 / 50%); }
/* Tailwind CSS */
<div class="bg-[#240297] text-[#240297] border-[#240297]">