#242888#242888

#242888 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.156 H 273.0°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#242888
RGBrgb(36, 40, 136)
HSLhsl(238, 58%, 34%)
HSVhsv(238, 74%, 53%)
CMYKcmyk(73.5%, 70.6%, 0%, 46.7%)
CIE-LABlab(22.55, 32.14, -53.82)
CIE-LCHlch(22.55, 62.69, 300.85°)
OKLaboklab(34.56% 0.008 -0.1556)
OKLCHoklch(34.56% 0.156 273)
XYZxyz(5.9288, 3.6696, 23.6836)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242888 #888424
analogous
#245A88 #242888 #522488
triadic
#242888 #882428 #288824
tetradic
#242888 #88245A #888424 #248852
square
#242888 #88245A #888424 #248852
split-complementary
#242888 #885224 #5A8824
monochromatic
#0A0C27 #171A58 #242888 #3136B8 #555AD2

Accessibility & contrast

On white

12.11
#242888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#242888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242888
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242888#FFFFFF#000000##FFFFFF
##2428881.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242888;
/* rgb */ color: rgb(36, 40, 136);
/* oklch */ color: oklch(34.6% 0.156 273.0);
Tailwind
colors: {
  custom: {
    50: '#6f62ac',
    500: '#242888',
    950: '#000000',
  },
}
SCSS
$custom: #242888;
$custom-light: #6f62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#242888",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 237.6,
    "s": 58.14,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34561,
    "c": 0.15582,
    "h": 273
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#242888
secondary
#B6B252
accent
#DB46E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242888

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

Preview Lab → · Contrast checker → · Palette generator →

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