#242F80#242F80

#242F80 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.136 H 271.5°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#242F80
RGBrgb(36, 47, 128)
HSLhsl(233, 56%, 32%)
HSVhsv(233, 72%, 50%)
CMYKcmyk(71.9%, 63.3%, 0%, 49.8%)
CIE-LABlab(23.56, 24.50, -47.14)
CIE-LCHlch(23.56, 53.12, 297.46°)
OKLaboklab(35.07% 0.0036 -0.136)
OKLCHoklch(35.07% 0.136 271.5)
XYZxyz(5.6390, 3.9661, 20.8862)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F80 #807524
analogous
#245D80 #242F80 #472480
triadic
#242F80 #80242F #2F8024
tetradic
#242F80 #80245D #807524 #248047
square
#242F80 #80245D #807524 #248047
split-complementary
#242F80 #804724 #5D8024
monochromatic
#090C20 #171D50 #242F80 #3141B0 #505FCE

Accessibility & contrast

On white

11.71
#242F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#242F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F80
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F80#FFFFFF#000000##FFFFFF
##242F801.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #242f80;
/* rgb */ color: rgb(36, 47, 128);
/* oklch */ color: oklch(35.1% 0.136 271.5);
Tailwind
colors: {
  custom: {
    50: '#6c67a6',
    500: '#242f80',
    950: '#000000',
  },
}
SCSS
$custom: #242f80;
$custom-light: #6c67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#242f80",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 128
  },
  "hsl": {
    "h": 232.826,
    "s": 56.098,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3507,
    "c": 0.13605,
    "h": 271.5
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

primary
#242F80
secondary
#B2A64E
accent
#CD48DF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #242F80

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

Preview Lab → · Contrast checker → · Palette generator →

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