#242A79#242A79

#242A79 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.133 H 273.4°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#242A79
RGBrgb(36, 42, 121)
HSLhsl(236, 54%, 31%)
HSVhsv(236, 70%, 47%)
CMYKcmyk(70.2%, 65.3%, 0%, 52.5%)
CIE-LABlab(21.62, 25.26, -45.87)
CIE-LCHlch(21.62, 52.37, 298.84°)
OKLaboklab(33.45% 0.008 -0.1323)
OKLCHoklch(33.45% 0.133 273.4)
XYZxyz(5.0056, 3.4110, 18.4801)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242A79 #797324
analogous
#245479 #242A79 #482479
triadic
#242A79 #79242A #2A7924
tetradic
#242A79 #792454 #797324 #247948
square
#242A79 #792454 #797324 #247948
split-complementary
#242A79 #794824 #547924
monochromatic
#08091B #161A4A #242A79 #323AA8 #4D56CA

Accessibility & contrast

On white

12.48
#242A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#242A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242A79
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242A79#FFFFFF#000000##FFFFFF
##242A791.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #242a79;
/* rgb */ color: rgb(36, 42, 121);
/* oklch */ color: oklch(33.4% 0.133 273.4);
Tailwind
colors: {
  custom: {
    50: '#6b63a0',
    500: '#242a79',
    950: '#000000',
  },
}
SCSS
$custom: #242a79;
$custom-light: #6b63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#242a79",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 235.765,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33448,
    "c": 0.13257,
    "h": 273.4
  },
  "luminance": 0.03411
}

Semantic roles & 50–950 ramp

primary
#242A79
secondary
#ACA54D
accent
#D34ADE
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #242A79

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

Preview Lab → · Contrast checker → · Palette generator →

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