#241997#241997

#241997 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.189 H 273.6°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#241997
RGBrgb(36, 25, 151)
HSLhsl(245, 72%, 35%)
HSVhsv(245, 83%, 59%)
CMYKcmyk(76.2%, 83.4%, 0%, 40.8%)
CIE-LABlab(21.22, 45.68, -65.32)
CIE-LCHlch(21.22, 79.71, 304.97°)
OKLaboklab(34.11% 0.012 -0.1889)
OKLCHoklch(34.11% 0.189 273.6)
XYZxyz(6.6592, 3.3040, 29.5589)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241997 #8C9719
analogous
#194D97 #241997 #631997
triadic
#241997 #972419 #199724
tetradic
#241997 #97194D #8C9719 #199763
square
#241997 #97194D #8C9719 #199763
split-complementary
#241997 #976319 #4D9719
monochromatic
#0B082E #171062 #241997 #3122CC #5749E1

Accessibility & contrast

On white

12.64
#241997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#241997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241997
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241997#FFFFFF#000000##FFFFFF
##2419971.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399A
Deuteranopia (green-blind)
#002D95
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #241997;
/* rgb */ color: rgb(36, 25, 151);
/* oklch */ color: oklch(34.1% 0.189 273.6);
Tailwind
colors: {
  custom: {
    50: '#745ab7',
    500: '#241997',
    950: '#000000',
  },
}
SCSS
$custom: #241997;
$custom-light: #745ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#241997",
  "rgb": {
    "r": 36,
    "g": 25,
    "b": 151
  },
  "hsl": {
    "h": 245.238,
    "s": 71.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34114,
    "c": 0.18932,
    "h": 273.6
  },
  "luminance": 0.03305
}

Semantic roles & 50–950 ramp

primary
#241997
secondary
#B8C349
accent
#EE39DF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #241997

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#241997 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva