#242688#242688

#242688 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.158 H 273.4°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#242688
RGBrgb(36, 38, 136)
HSLhsl(239, 58%, 34%)
HSVhsv(239, 74%, 53%)
CMYKcmyk(73.5%, 72.1%, 0%, 46.7%)
CIE-LABlab(22.08, 33.41, -54.58)
CIE-LCHlch(22.08, 64.00, 301.47°)
OKLaboklab(34.23% 0.0093 -0.1578)
OKLCHoklch(34.23% 0.158 273.4)
XYZxyz(5.8631, 3.5383, 23.6617)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242688 #888624
analogous
#245888 #242688 #542488
triadic
#242688 #882426 #268824
tetradic
#242688 #882458 #888624 #248854
square
#242688 #882458 #888624 #248854
split-complementary
#242688 #885424 #588824
monochromatic
#0A0B27 #171858 #242688 #3134B8 #5557D2

Accessibility & contrast

On white

12.30
#242688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#242688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242688
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242688#FFFFFF#000000##FFFFFF
##2426881.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #242688;
/* rgb */ color: rgb(36, 38, 136);
/* oklch */ color: oklch(34.2% 0.158 273.4);
Tailwind
colors: {
  custom: {
    50: '#6f61ac',
    500: '#242688',
    950: '#000000',
  },
}
SCSS
$custom: #242688;
$custom-light: #6f61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#242688",
  "rgb": {
    "r": 36,
    "g": 38,
    "b": 136
  },
  "hsl": {
    "h": 238.8,
    "s": 58.14,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34225,
    "c": 0.15811,
    "h": 273.4
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#242688
secondary
#B6B452
accent
#DE46E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242688

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

Preview Lab → · Contrast checker → · Palette generator →

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