#242D7C#242D7C

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

Color values

HEX#242D7C
RGBrgb(36, 45, 124)
HSLhsl(234, 55%, 31%)
HSVhsv(234, 71%, 49%)
CMYKcmyk(71%, 63.7%, 0%, 51.4%)
CIE-LABlab(22.68, 24.35, -46.05)
CIE-LCHlch(22.68, 52.09, 297.86°)
OKLaboklab(34.31% 0.0053 -0.1328)
OKLCHoklch(34.31% 0.133 272.3)
XYZxyz(5.3028, 3.7066, 19.5009)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D7C #7C7324
analogous
#24597C #242D7C #47247C
triadic
#242D7C #7C242D #2D7C24
tetradic
#242D7C #7C2459 #7C7324 #247C47
square
#242D7C #7C2459 #7C7324 #247C47
split-complementary
#242D7C #7C4724 #597C24
monochromatic
#080B1D #161C4D #242D7C #323EAB #4F5BCC

Accessibility & contrast

On white

12.06
#242D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#242D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242D7C
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D7C#FFFFFF#000000##FFFFFF
##242D7C1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242d7c;
/* rgb */ color: rgb(36, 45, 124);
/* oklch */ color: oklch(34.3% 0.133 272.3);
Tailwind
colors: {
  custom: {
    50: '#6b66a3',
    500: '#242d7c',
    950: '#000000',
  },
}
SCSS
$custom: #242d7c;
$custom-light: #6b66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#242d7c",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 233.864,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34309,
    "c": 0.13294,
    "h": 272.3
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#242D7C
secondary
#AEA44D
accent
#CF49DE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #242D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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