#242542#242542

#242542 is a dark, muted blue. Relative luminance 0.021; OKLCH L 27.9% C 0.053 H 280.9°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#242542
RGBrgb(36, 37, 66)
HSLhsl(238, 29%, 20%)
HSVhsv(238, 45%, 26%)
CMYKcmyk(45.5%, 43.9%, 0%, 74.1%)
CIE-LABlab(15.96, 8.36, -18.52)
CIE-LCHlch(15.96, 20.32, 294.29°)
OKLaboklab(27.87% 0.01 -0.0521)
OKLCHoklch(27.87% 0.053 280.9)
XYZxyz(2.3722, 2.0915, 5.4319)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242542 #424124
analogous
#243442 #242542 #322442
triadic
#242542 #422425 #254224
tetradic
#242542 #422434 #424124 #244232
square
#242542 #422434 #424124 #244232
split-complementary
#242542 #423224 #344224
monochromatic
#0B0B14 #0E0F1A #242542 #3A3B6A #4F5191

Accessibility & contrast

On white

14.81
#242542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#242542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242542
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242542#FFFFFF#000000##FFFFFF
##2425421.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2943
Deuteranopia (green-blind)
#192741
Tritanopia (blue-blind)
#1B2B30
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #242542;
/* rgb */ color: rgb(36, 37, 66);
/* oklch */ color: oklch(27.9% 0.053 280.9);
Tailwind
colors: {
  custom: {
    50: '#605f76',
    500: '#242542',
    950: '#000000',
  },
}
SCSS
$custom: #242542;
$custom-light: #605f76;
$custom-dark: #000000;
JSON
{
  "hex": "#242542",
  "rgb": {
    "r": 36,
    "g": 37,
    "b": 66
  },
  "hsl": {
    "h": 238,
    "s": 29.412,
    "l": 20
  },
  "oklch": {
    "l": 0.27871,
    "c": 0.05303,
    "h": 280.9
  },
  "luminance": 0.02092
}

Semantic roles & 50–950 ramp

primary
#242542
secondary
#75744D
accent
#C262C6
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#050408
muted
#79797B

Preview Lab

Preview with #242542

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

Preview Lab → · Contrast checker → · Palette generator →

#242542 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva