#242F76#242F76

#242F76 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.121 H 271.7°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#242F76
RGBrgb(36, 47, 118)
HSLhsl(232, 53%, 30%)
HSVhsv(232, 69%, 46%)
CMYKcmyk(69.5%, 60.2%, 0%, 53.7%)
CIE-LABlab(22.71, 20.66, -42.19)
CIE-LCHlch(22.71, 46.98, 296.10°)
OKLaboklab(34.17% 0.0036 -0.1214)
OKLCHoklch(34.17% 0.122 271.7)
XYZxyz(5.0130, 3.7156, 17.5890)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F76 #766B24
analogous
#245876 #242F76 #422476
triadic
#242F76 #76242F #2F7624
tetradic
#242F76 #762458 #766B24 #247642
square
#242F76 #762458 #766B24 #247642
split-complementary
#242F76 #764224 #587624
monochromatic
#070A18 #161C47 #242F76 #3242A5 #4C5DC8

Accessibility & contrast

On white

12.05
#242F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#242F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F76
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F76#FFFFFF#000000##FFFFFF
##242F761.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242f76;
/* rgb */ color: rgb(36, 47, 118);
/* oklch */ color: oklch(34.2% 0.121 271.7);
Tailwind
colors: {
  custom: {
    50: '#6a679e',
    500: '#242f76',
    950: '#000000',
  },
}
SCSS
$custom: #242f76;
$custom-light: #6a679e;
$custom-dark: #000000;
JSON
{
  "hex": "#242f76",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 231.951,
    "s": 53.247,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34172,
    "c": 0.1215,
    "h": 271.7
  },
  "luminance": 0.03716
}

Semantic roles & 50–950 ramp

primary
#242F76
secondary
#A99C4D
accent
#C94BDD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #242F76

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

Preview Lab → · Contrast checker → · Palette generator →

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