#242E81#242E81

#242E81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.139 H 271.8°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#242E81
RGBrgb(36, 46, 129)
HSLhsl(234, 56%, 32%)
HSVhsv(234, 72%, 51%)
CMYKcmyk(72.1%, 64.3%, 0%, 49.4%)
CIE-LABlab(23.38, 25.56, -48.06)
CIE-LCHlch(23.38, 54.43, 298.01°)
OKLaboklab(34.97% 0.0043 -0.1387)
OKLCHoklch(34.97% 0.139 271.8)
XYZxyz(5.6657, 3.9135, 21.2214)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242E81 #817724
analogous
#245D81 #242E81 #482481
triadic
#242E81 #81242E #2E8124
tetradic
#242E81 #81245D #817724 #248148
square
#242E81 #81245D #817724 #248148
split-complementary
#242E81 #814824 #5D8124
monochromatic
#090C21 #171D51 #242E81 #313FB1 #515ECE

Accessibility & contrast

On white

11.78
#242E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#242E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242E81
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242E81#FFFFFF#000000##FFFFFF
##242E811.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #242e81;
/* rgb */ color: rgb(36, 46, 129);
/* oklch */ color: oklch(35.0% 0.139 271.8);
Tailwind
colors: {
  custom: {
    50: '#6c66a6',
    500: '#242e81',
    950: '#000000',
  },
}
SCSS
$custom: #242e81;
$custom-light: #6c66a6;
$custom-dark: #000000;
JSON
{
  "hex": "#242e81",
  "rgb": {
    "r": 36,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 233.548,
    "s": 56.364,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34968,
    "c": 0.13877,
    "h": 271.8
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#242E81
secondary
#B2A84E
accent
#CF48E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #242E81

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

Preview Lab → · Contrast checker → · Palette generator →

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