#242D79#242D79

#242D79 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.129 H 272.4°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#242D79
RGBrgb(36, 45, 121)
HSLhsl(234, 54%, 31%)
HSVhsv(234, 70%, 47%)
CMYKcmyk(70.2%, 62.8%, 0%, 52.5%)
CIE-LABlab(22.41, 23.20, -44.57)
CIE-LCHlch(22.41, 50.25, 297.50°)
OKLaboklab(34.03% 0.0054 -0.1285)
OKLCHoklch(34.03% 0.129 272.4)
XYZxyz(5.1160, 3.6318, 18.5169)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D79 #797024
analogous
#245779 #242D79 #452479
triadic
#242D79 #79242D #2D7924
tetradic
#242D79 #792457 #797024 #247945
square
#242D79 #792457 #797024 #247945
split-complementary
#242D79 #794524 #577924
monochromatic
#080A1B #161B4A #242D79 #323FA8 #4D5ACA

Accessibility & contrast

On white

12.16
#242D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#242D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##242D79#FFFFFF#000000##FFFFFF
##242D791.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)
#003A7C
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242d79;
/* rgb */ color: rgb(36, 45, 121);
/* oklch */ color: oklch(34.0% 0.129 272.4);
Tailwind
colors: {
  custom: {
    50: '#6b65a0',
    500: '#242d79',
    950: '#000000',
  },
}
SCSS
$custom: #242d79;
$custom-light: #6b65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#242d79",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 233.647,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34034,
    "c": 0.1286,
    "h": 272.4
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#242D79
secondary
#ACA24D
accent
#CE4ADE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #242D79

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

Preview Lab → · Contrast checker → · Palette generator →

#242D79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva