#242E7A#242E7A

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

Color values

HEX#242E7A
RGBrgb(36, 46, 122)
HSLhsl(233, 54%, 31%)
HSVhsv(233, 70%, 48%)
CMYKcmyk(70.5%, 62.3%, 0%, 52.2%)
CIE-LABlab(22.77, 22.89, -44.63)
CIE-LCHlch(22.77, 50.16, 297.16°)
OKLaboklab(34.33% 0.0045 -0.1286)
OKLCHoklch(34.33% 0.129 272)
XYZxyz(5.2162, 3.7337, 18.8544)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242E7A #7A7024
analogous
#24597A #242E7A #45247A
triadic
#242E7A #7A242E #2E7A24
tetradic
#242E7A #7A2459 #7A7024 #247A45
square
#242E7A #7A2459 #7A7024 #247A45
split-complementary
#242E7A #7A4524 #597A24
monochromatic
#080A1B #161C4B #242E7A #3240A9 #4E5CCB

Accessibility & contrast

On white

12.02
#242E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242E7A
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242E7A#FFFFFF#000000##FFFFFF
##242E7A1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242e7a;
/* rgb */ color: rgb(36, 46, 122);
/* oklch */ color: oklch(34.3% 0.129 272.0);
Tailwind
colors: {
  custom: {
    50: '#6b66a1',
    500: '#242e7a',
    950: '#000000',
  },
}
SCSS
$custom: #242e7a;
$custom-light: #6b66a1;
$custom-dark: #000000;
JSON
{
  "hex": "#242e7a",
  "rgb": {
    "r": 36,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 233.023,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34325,
    "c": 0.12873,
    "h": 272
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#242E7A
secondary
#ACA14D
accent
#CD4ADE
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #242E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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