#242187#242187

#242187 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.162 H 274.4°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#242187
RGBrgb(36, 33, 135)
HSLhsl(242, 61%, 33%)
HSVhsv(242, 76%, 53%)
CMYKcmyk(73.3%, 75.6%, 0%, 47.1%)
CIE-LABlab(20.87, 36.13, -55.95)
CIE-LCHlch(20.87, 66.60, 302.85°)
OKLaboklab(33.33% 0.0124 -0.1618)
OKLCHoklch(33.33% 0.162 274.4)
XYZxyz(5.6431, 3.2115, 23.2395)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242187 #848721
analogous
#215187 #242187 #572187
triadic
#242187 #872421 #218724
tetradic
#242187 #872151 #848721 #218757
square
#242187 #872151 #848721 #218757
split-complementary
#242187 #875721 #518721
monochromatic
#0A0925 #171556 #242187 #312DB8 #524FD4

Accessibility & contrast

On white

12.79
#242187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#242187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242187
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242187#FFFFFF#000000##FFFFFF
##2421871.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #242187;
/* rgb */ color: rgb(36, 33, 135);
/* oklch */ color: oklch(33.3% 0.162 274.4);
Tailwind
colors: {
  custom: {
    50: '#6f5eab',
    500: '#242187',
    950: '#000000',
  },
}
SCSS
$custom: #242187;
$custom-light: #6f5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#242187",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 241.765,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33329,
    "c": 0.16228,
    "h": 274.4
  },
  "luminance": 0.03212
}

Semantic roles & 50–950 ramp

primary
#242187
secondary
#B4B74D
accent
#E444DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #242187

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

Preview Lab → · Contrast checker → · Palette generator →

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