#242789#242789

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

Color values

HEX#242789
RGBrgb(36, 39, 137)
HSLhsl(238, 58%, 34%)
HSVhsv(238, 74%, 54%)
CMYKcmyk(73.7%, 71.5%, 0%, 46.3%)
CIE-LABlab(22.41, 33.14, -54.66)
CIE-LCHlch(22.41, 63.92, 301.23°)
OKLaboklab(34.49% 0.0085 -0.1581)
OKLCHoklch(34.49% 0.158 273.1)
XYZxyz(5.9669, 3.6317, 24.0486)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242789 #898624
analogous
#245A89 #242789 #542489
triadic
#242789 #892427 #278924
tetradic
#242789 #89245A #898624 #248954
square
#242789 #89245A #898624 #248954
split-complementary
#242789 #895424 #5A8924
monochromatic
#0B0B28 #171959 #242789 #3135B9 #5559D2

Accessibility & contrast

On white

12.16
#242789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242789
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242789#FFFFFF#000000##FFFFFF
##2427891.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242789;
/* rgb */ color: rgb(36, 39, 137);
/* oklch */ color: oklch(34.5% 0.158 273.1);
Tailwind
colors: {
  custom: {
    50: '#6f62ac',
    500: '#242789',
    950: '#000000',
  },
}
SCSS
$custom: #242789;
$custom-light: #6f62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#242789",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 238.218,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34495,
    "c": 0.1583,
    "h": 273.1
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#242789
secondary
#B7B452
accent
#DD46E2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242789

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

Preview Lab → · Contrast checker → · Palette generator →

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