#242E7E#242E7E

#242E7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.134 H 271.9°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#242E7E
RGBrgb(36, 46, 126)
HSLhsl(233, 56%, 32%)
HSVhsv(233, 71%, 49%)
CMYKcmyk(71.4%, 63.5%, 0%, 50.6%)
CIE-LABlab(23.12, 24.42, -46.60)
CIE-LCHlch(23.12, 52.61, 297.66°)
OKLaboklab(34.69% 0.0044 -0.1344)
OKLCHoklch(34.69% 0.134 271.9)
XYZxyz(5.4692, 3.8349, 20.1866)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242E7E #7E7424
analogous
#245B7E #242E7E #47247E
triadic
#242E7E #7E242E #2E7E24
tetradic
#242E7E #7E245B #7E7424 #247E47
square
#242E7E #7E245B #7E7424 #247E47
split-complementary
#242E7E #7E4724 #5B7E24
monochromatic
#090B1F #161D4E #242E7E #323FAE #505DCD

Accessibility & contrast

On white

11.88
#242E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242E7E
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242E7E#FFFFFF#000000##FFFFFF
##242E7E1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242e7e;
/* rgb */ color: rgb(36, 46, 126);
/* oklch */ color: oklch(34.7% 0.134 271.9);
Tailwind
colors: {
  custom: {
    50: '#6c66a4',
    500: '#242e7e',
    950: '#000000',
  },
}
SCSS
$custom: #242e7e;
$custom-light: #6c66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#242e7e",
  "rgb": {
    "r": 36,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 233.333,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3469,
    "c": 0.13449,
    "h": 271.9
  },
  "luminance": 0.03835
}

Semantic roles & 50–950 ramp

primary
#242E7E
secondary
#B0A54E
accent
#CE49DF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #242E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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