#242397#242397

#242397 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.181 H 272.6°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#242397
RGBrgb(36, 35, 151)
HSLhsl(241, 62%, 36%)
HSVhsv(241, 77%, 59%)
CMYKcmyk(76.2%, 76.8%, 0%, 40.8%)
CIE-LABlab(23.04, 40.45, -62.32)
CIE-LCHlch(23.04, 74.30, 302.99°)
OKLaboklab(35.38% 0.0082 -0.1804)
OKLCHoklch(35.38% 0.181 272.6)
XYZxyz(6.9126, 3.8108, 29.6434)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242397 #969723
analogous
#235C97 #242397 #5E2397
triadic
#242397 #972423 #239724
tetradic
#242397 #97235C #969723 #23975E
square
#242397 #97235C #969723 #23975E
split-complementary
#242397 #975E23 #5C9723
monochromatic
#0C0C34 #181765 #242397 #302FC9 #5C5BD9

Accessibility & contrast

On white

11.92
#242397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#242397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242397
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242397#FFFFFF#000000##FFFFFF
##2423971.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242397;
/* rgb */ color: rgb(36, 35, 151);
/* oklch */ color: oklch(35.4% 0.181 272.6);
Tailwind
colors: {
  custom: {
    50: '#7360b7',
    500: '#242397',
    950: '#000000',
  },
}
SCSS
$custom: #242397;
$custom-light: #7360b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242397",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 240.517,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35382,
    "c": 0.18055,
    "h": 272.6
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

primary
#242397
secondary
#BDBE58
accent
#E542E4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #242397

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

Preview Lab → · Contrast checker → · Palette generator →

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