#242F71#242F71

#242F71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.7% C 0.114 H 271.7°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#242F71
RGBrgb(36, 47, 113)
HSLhsl(231, 52%, 29%)
HSVhsv(231, 68%, 44%)
CMYKcmyk(68.1%, 58.4%, 0%, 55.7%)
CIE-LABlab(22.30, 18.74, -39.65)
CIE-LCHlch(22.30, 43.85, 295.29°)
OKLaboklab(33.74% 0.0035 -0.114)
OKLCHoklch(33.74% 0.114 271.7)
XYZxyz(4.7237, 3.5999, 16.0655)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F71 #716624
analogous
#245671 #242F71 #402471
triadic
#242F71 #71242F #2F7124
tetradic
#242F71 #712456 #716624 #247140
square
#242F71 #712456 #716624 #247140
split-complementary
#242F71 #714024 #567124
monochromatic
#070A17 #151C43 #242F71 #33429F #4A5CC5

Accessibility & contrast

On white

12.21
#242F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#242F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F71
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F71#FFFFFF#000000##FFFFFF
##242F711.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #242f71;
/* rgb */ color: rgb(36, 47, 113);
/* oklch */ color: oklch(33.7% 0.114 271.7);
Tailwind
colors: {
  custom: {
    50: '#68679a',
    500: '#242f71',
    950: '#000000',
  },
}
SCSS
$custom: #242f71;
$custom-light: #68679a;
$custom-dark: #000000;
JSON
{
  "hex": "#242f71",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 231.429,
    "s": 51.678,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33741,
    "c": 0.11403,
    "h": 271.7
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#242F71
secondary
#A4984D
accent
#C74DDB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #242F71

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

Preview Lab → · Contrast checker → · Palette generator →

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