#242F79#242F79

#242F79 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.126 H 271.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#242F79
RGBrgb(36, 47, 121)
HSLhsl(232, 54%, 31%)
HSVhsv(232, 70%, 47%)
CMYKcmyk(70.2%, 61.2%, 0%, 52.5%)
CIE-LABlab(22.96, 21.82, -43.69)
CIE-LCHlch(22.96, 48.83, 296.54°)
OKLaboklab(34.44% 0.0036 -0.1259)
OKLCHoklch(34.44% 0.126 271.7)
XYZxyz(5.1941, 3.7881, 18.5429)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F79 #796E24
analogous
#245979 #242F79 #432479
triadic
#242F79 #79242F #2F7924
tetradic
#242F79 #792459 #796E24 #247943
square
#242F79 #792459 #796E24 #247943
split-complementary
#242F79 #794324 #597924
monochromatic
#080A1B #161D4A #242F79 #3241A8 #4D5DCA

Accessibility & contrast

On white

11.95
#242F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#242F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F79
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F79#FFFFFF#000000##FFFFFF
##242F791.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242f79;
/* rgb */ color: rgb(36, 47, 121);
/* oklch */ color: oklch(34.4% 0.126 271.7);
Tailwind
colors: {
  custom: {
    50: '#6a67a0',
    500: '#242f79',
    950: '#000000',
  },
}
SCSS
$custom: #242f79;
$custom-light: #6a67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#242f79",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 232.235,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34437,
    "c": 0.12592,
    "h": 271.7
  },
  "luminance": 0.03789
}

Semantic roles & 50–950 ramp

primary
#242F79
secondary
#AC9F4D
accent
#CA4ADE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #242F79

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

Preview Lab → · Contrast checker → · Palette generator →

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