#242840#242840

#242840 is a dark, muted blue. Relative luminance 0.023; OKLCH L 28.5% C 0.044 H 276.0°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#242840
RGBrgb(36, 40, 64)
HSLhsl(231, 28%, 20%)
HSVhsv(231, 44%, 25%)
CMYKcmyk(43.8%, 37.5%, 0%, 74.9%)
CIE-LABlab(16.81, 5.50, -15.80)
CIE-LCHlch(16.81, 16.73, 289.19°)
OKLaboklab(28.49% 0.0046 -0.0442)
OKLCHoklch(28.49% 0.044 276)
XYZxyz(2.4115, 2.2627, 5.1592)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242840 #403C24
analogous
#243640 #242840 #2E2440
triadic
#242840 #402428 #284024
tetradic
#242840 #402436 #403C24 #24402E
square
#242840 #402436 #403C24 #24402E
split-complementary
#242840 #402E24 #364024
monochromatic
#0B0C14 #0E1019 #242840 #3A4067 #50598E

Accessibility & contrast

On white

14.46
#242840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#242840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242840
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242840#FFFFFF#000000##FFFFFF
##2428401.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202B41
Deuteranopia (green-blind)
#1E283F
Tritanopia (blue-blind)
#1C2D31
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #242840;
/* rgb */ color: rgb(36, 40, 64);
/* oklch */ color: oklch(28.5% 0.044 276.0);
Tailwind
colors: {
  custom: {
    50: '#606175',
    500: '#242840',
    950: '#000000',
  },
}
SCSS
$custom: #242840;
$custom-light: #606175;
$custom-dark: #000000;
JSON
{
  "hex": "#242840",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 64
  },
  "hsl": {
    "h": 231.429,
    "s": 28,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28486,
    "c": 0.04443,
    "h": 276
  },
  "luminance": 0.02263
}

Semantic roles & 50–950 ramp

primary
#242840
secondary
#736D4D
accent
#B663C4
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#050508
muted
#79797B

Preview Lab

Preview with #242840

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

Preview Lab → · Contrast checker → · Palette generator →

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