#242F77#242F77

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

Color values

HEX#242F77
RGBrgb(36, 47, 119)
HSLhsl(232, 54%, 30%)
HSVhsv(232, 70%, 47%)
CMYKcmyk(69.7%, 60.5%, 0%, 53.3%)
CIE-LABlab(22.79, 21.05, -42.69)
CIE-LCHlch(22.79, 47.60, 296.25°)
OKLaboklab(34.26% 0.0036 -0.1229)
OKLCHoklch(34.26% 0.123 271.7)
XYZxyz(5.0727, 3.7395, 17.9037)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F77 #776C24
analogous
#245877 #242F77 #422477
triadic
#242F77 #77242F #2F7724
tetradic
#242F77 #772458 #776C24 #247742
square
#242F77 #772458 #776C24 #247742
split-complementary
#242F77 #774224 #587724
monochromatic
#080A19 #161C48 #242F77 #3242A6 #4C5DC9

Accessibility & contrast

On white

12.01
#242F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242F77
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F77#FFFFFF#000000##FFFFFF
##242F771.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A79
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242f77;
/* rgb */ color: rgb(36, 47, 119);
/* oklch */ color: oklch(34.3% 0.123 271.7);
Tailwind
colors: {
  custom: {
    50: '#6a679f',
    500: '#242f77',
    950: '#000000',
  },
}
SCSS
$custom: #242f77;
$custom-light: #6a679f;
$custom-dark: #000000;
JSON
{
  "hex": "#242f77",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 232.048,
    "s": 53.548,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3426,
    "c": 0.12298,
    "h": 271.7
  },
  "luminance": 0.0374
}

Semantic roles & 50–950 ramp

primary
#242F77
secondary
#AA9D4D
accent
#CA4BDD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #242F77

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

Preview Lab → · Contrast checker → · Palette generator →

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