#242F78#242F78

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

Color values

HEX#242F78
RGBrgb(36, 47, 120)
HSLhsl(232, 54%, 31%)
HSVhsv(232, 70%, 47%)
CMYKcmyk(70%, 60.8%, 0%, 52.9%)
CIE-LABlab(22.87, 21.43, -43.19)
CIE-LCHlch(22.87, 48.22, 296.39°)
OKLaboklab(34.35% 0.0036 -0.1244)
OKLCHoklch(34.35% 0.124 271.7)
XYZxyz(5.1331, 3.7637, 18.2216)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F78 #786D24
analogous
#245978 #242F78 #432478
triadic
#242F78 #78242F #2F7824
tetradic
#242F78 #782459 #786D24 #247843
square
#242F78 #782459 #786D24 #247843
split-complementary
#242F78 #784324 #597824
monochromatic
#080A1A #161D49 #242F78 #3241A7 #4D5DCA

Accessibility & contrast

On white

11.98
#242F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#242F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F78
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F78#FFFFFF#000000##FFFFFF
##242F781.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242f78;
/* rgb */ color: rgb(36, 47, 120);
/* oklch */ color: oklch(34.3% 0.124 271.7);
Tailwind
colors: {
  custom: {
    50: '#6a67a0',
    500: '#242f78',
    950: '#000000',
  },
}
SCSS
$custom: #242f78;
$custom-light: #6a67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#242f78",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 232.143,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34348,
    "c": 0.12445,
    "h": 271.7
  },
  "luminance": 0.03764
}

Semantic roles & 50–950 ramp

primary
#242F78
secondary
#AB9E4D
accent
#CA4BDD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #242F78

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

Preview Lab → · Contrast checker → · Palette generator →

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