#242E7F#242E7F

#242E7F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.136 H 271.9°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#242E7F
RGBrgb(36, 46, 127)
HSLhsl(233, 56%, 32%)
HSVhsv(233, 72%, 50%)
CMYKcmyk(71.7%, 63.8%, 0%, 50.2%)
CIE-LABlab(23.21, 24.80, -47.09)
CIE-LCHlch(23.21, 53.22, 297.78°)
OKLaboklab(34.78% 0.0044 -0.1358)
OKLCHoklch(34.78% 0.136 271.9)
XYZxyz(5.5340, 3.8608, 20.5281)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242E7F #7F7524
analogous
#245B7F #242E7F #48247F
triadic
#242E7F #7F242E #2E7F24
tetradic
#242E7F #7F245B #7F7524 #247F48
square
#242E7F #7F245B #7F7524 #247F48
split-complementary
#242E7F #7F4824 #5B7F24
monochromatic
#090B20 #161D4F #242E7F #323FAF #505ECD

Accessibility & contrast

On white

11.85
#242E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#242E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242E7F
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242E7F#FFFFFF#000000##FFFFFF
##242E7F1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242e7f;
/* rgb */ color: rgb(36, 46, 127);
/* oklch */ color: oklch(34.8% 0.136 271.9);
Tailwind
colors: {
  custom: {
    50: '#6c66a5',
    500: '#242e7f',
    950: '#000000',
  },
}
SCSS
$custom: #242e7f;
$custom-light: #6c66a5;
$custom-dark: #000000;
JSON
{
  "hex": "#242e7f",
  "rgb": {
    "r": 36,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 233.407,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34782,
    "c": 0.13592,
    "h": 271.9
  },
  "luminance": 0.03861
}

Semantic roles & 50–950 ramp

primary
#242E7F
secondary
#B1A64E
accent
#CF49DF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #242E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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