#242787#242787

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

Color values

HEX#242787
RGBrgb(36, 39, 135)
HSLhsl(238, 58%, 34%)
HSVhsv(238, 73%, 53%)
CMYKcmyk(73.3%, 71.1%, 0%, 47.1%)
CIE-LABlab(22.21, 32.42, -53.74)
CIE-LCHlch(22.21, 62.76, 301.10°)
OKLaboklab(34.29% 0.0088 -0.1554)
OKLCHoklch(34.29% 0.156 273.2)
XYZxyz(5.8248, 3.5748, 23.3000)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242787 #878424
analogous
#245887 #242787 #522487
triadic
#242787 #872427 #278724
tetradic
#242787 #872458 #878424 #248752
square
#242787 #872458 #878424 #248752
split-complementary
#242787 #875224 #588724
monochromatic
#0A0B26 #171957 #242787 #3135B7 #5458D1

Accessibility & contrast

On white

12.24
#242787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242787
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242787#FFFFFF#000000##FFFFFF
##2427871.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242787;
/* rgb */ color: rgb(36, 39, 135);
/* oklch */ color: oklch(34.3% 0.156 273.2);
Tailwind
colors: {
  custom: {
    50: '#6e62ab',
    500: '#242787',
    950: '#000000',
  },
}
SCSS
$custom: #242787;
$custom-light: #6e62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#242787",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 238.182,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34289,
    "c": 0.15564,
    "h": 273.2
  },
  "luminance": 0.03575
}

Semantic roles & 50–950 ramp

primary
#242787
secondary
#B5B251
accent
#DC47E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242787

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

Preview Lab → · Contrast checker → · Palette generator →

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