#242889#242889

#242889 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.157 H 272.9°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#242889
RGBrgb(36, 40, 137)
HSLhsl(238, 58%, 34%)
HSVhsv(238, 74%, 54%)
CMYKcmyk(73.7%, 70.8%, 0%, 46.3%)
CIE-LABlab(22.65, 32.50, -54.28)
CIE-LCHlch(22.65, 63.27, 300.91°)
OKLaboklab(34.66% 0.0079 -0.1569)
OKLCHoklch(34.66% 0.157 272.9)
XYZxyz(6.0002, 3.6982, 24.0597)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242889 #898524
analogous
#245B89 #242889 #532489
triadic
#242889 #892428 #288924
tetradic
#242889 #89245B #898524 #248953
square
#242889 #89245B #898524 #248953
split-complementary
#242889 #895324 #5B8924
monochromatic
#0B0C28 #171A59 #242889 #3136B9 #555AD2

Accessibility & contrast

On white

12.07
#242889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242889
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242889#FFFFFF#000000##FFFFFF
##2428891.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242889;
/* rgb */ color: rgb(36, 40, 137);
/* oklch */ color: oklch(34.7% 0.157 272.9);
Tailwind
colors: {
  custom: {
    50: '#6f62ac',
    500: '#242889',
    950: '#000000',
  },
}
SCSS
$custom: #242889;
$custom-light: #6f62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#242889",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 237.624,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34663,
    "c": 0.15715,
    "h": 272.9
  },
  "luminance": 0.03699
}

Semantic roles & 50–950 ramp

primary
#242889
secondary
#B7B352
accent
#DB46E2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242889

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

Preview Lab → · Contrast checker → · Palette generator →

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