#242788#242788

#242788 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.157 H 273.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#242788
RGBrgb(36, 39, 136)
HSLhsl(238, 58%, 34%)
HSVhsv(238, 74%, 53%)
CMYKcmyk(73.5%, 71.3%, 0%, 46.7%)
CIE-LABlab(22.31, 32.78, -54.20)
CIE-LCHlch(22.31, 63.34, 301.16°)
OKLaboklab(34.39% 0.0087 -0.1567)
OKLCHoklch(34.39% 0.157 273.2)
XYZxyz(5.8955, 3.6031, 23.6725)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242788 #888524
analogous
#245988 #242788 #532488
triadic
#242788 #882427 #278824
tetradic
#242788 #882459 #888524 #248853
square
#242788 #882459 #888524 #248853
split-complementary
#242788 #885324 #598824
monochromatic
#0A0B27 #171958 #242788 #3135B8 #5558D2

Accessibility & contrast

On white

12.20
#242788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#242788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242788
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242788#FFFFFF#000000##FFFFFF
##2427881.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242788;
/* rgb */ color: rgb(36, 39, 136);
/* oklch */ color: oklch(34.4% 0.157 273.2);
Tailwind
colors: {
  custom: {
    50: '#6f62ac',
    500: '#242788',
    950: '#000000',
  },
}
SCSS
$custom: #242788;
$custom-light: #6f62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#242788",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 238.2,
    "s": 58.14,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34392,
    "c": 0.15697,
    "h": 273.2
  },
  "luminance": 0.03604
}

Semantic roles & 50–950 ramp

primary
#242788
secondary
#B6B352
accent
#DD46E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242788

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

Preview Lab → · Contrast checker → · Palette generator →

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