#242987#242987

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

Color values

HEX#242987
RGBrgb(36, 41, 135)
HSLhsl(237, 58%, 34%)
HSVhsv(237, 73%, 53%)
CMYKcmyk(73.3%, 69.6%, 0%, 47.1%)
CIE-LABlab(22.69, 31.13, -52.96)
CIE-LCHlch(22.69, 61.44, 300.45°)
OKLaboklab(34.63% 0.0075 -0.1531)
OKLCHoklch(34.63% 0.153 272.8)
XYZxyz(5.8922, 3.7096, 23.3225)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242987 #878224
analogous
#245A87 #242987 #502487
triadic
#242987 #872429 #298724
tetradic
#242987 #87245A #878224 #248750
square
#242987 #87245A #878224 #248750
split-complementary
#242987 #875024 #5A8724
monochromatic
#0A0C26 #171A57 #242987 #3138B7 #545AD1

Accessibility & contrast

On white

12.06
#242987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#242987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242987
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242987#FFFFFF#000000##FFFFFF
##2429871.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242987;
/* rgb */ color: rgb(36, 41, 135);
/* oklch */ color: oklch(34.6% 0.153 272.8);
Tailwind
colors: {
  custom: {
    50: '#6e63ab',
    500: '#242987',
    950: '#000000',
  },
}
SCSS
$custom: #242987;
$custom-light: #6e63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#242987",
  "rgb": {
    "r": 36,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 236.97,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34632,
    "c": 0.15328,
    "h": 272.8
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#242987
secondary
#B5B051
accent
#D947E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242987

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

Preview Lab → · Contrast checker → · Palette generator →

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