#242887#242887

#242887 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.154 H 273.0°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#242887
RGBrgb(36, 40, 135)
HSLhsl(238, 58%, 34%)
HSVhsv(238, 73%, 53%)
CMYKcmyk(73.3%, 70.4%, 0%, 47.1%)
CIE-LABlab(22.45, 31.78, -53.36)
CIE-LCHlch(22.45, 62.10, 300.78°)
OKLaboklab(34.46% 0.0082 -0.1542)
OKLCHoklch(34.46% 0.154 273)
XYZxyz(5.8581, 3.6413, 23.3111)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242887 #878324
analogous
#245987 #242887 #512487
triadic
#242887 #872428 #288724
tetradic
#242887 #872459 #878324 #248751
square
#242887 #872459 #878324 #248751
split-complementary
#242887 #875124 #598724
monochromatic
#0A0B26 #171A57 #242887 #3136B7 #5459D1

Accessibility & contrast

On white

12.15
#242887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242887
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242887#FFFFFF#000000##FFFFFF
##2428871.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242887;
/* rgb */ color: rgb(36, 40, 135);
/* oklch */ color: oklch(34.5% 0.154 273.0);
Tailwind
colors: {
  custom: {
    50: '#6e62ab',
    500: '#242887',
    950: '#000000',
  },
}
SCSS
$custom: #242887;
$custom-light: #6e62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#242887",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 237.576,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34459,
    "c": 0.15447,
    "h": 273
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#242887
secondary
#B5B151
accent
#DB47E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242887

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

Preview Lab → · Contrast checker → · Palette generator →

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