#242538#242538

#242538 is a dark, muted blue. Relative luminance 0.020; OKLCH L 27.3% C 0.035 H 281.5°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#242538
RGBrgb(36, 37, 56)
HSLhsl(237, 22%, 18%)
HSVhsv(237, 36%, 22%)
CMYKcmyk(35.7%, 33.9%, 0%, 78%)
CIE-LABlab(15.40, 5.01, -12.42)
CIE-LCHlch(15.40, 13.39, 291.98°)
OKLaboklab(27.26% 0.007 -0.0344)
OKLCHoklch(27.26% 0.035 281.5)
XYZxyz(2.1027, 1.9837, 4.0127)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242538 #383724
analogous
#242F38 #242538 #2D2438
triadic
#242538 #382425 #253824
tetradic
#242538 #38242F #383724 #24382D
square
#242538 #38242F #383724 #24382D
split-complementary
#242538 #382D24 #2F3824
monochromatic
#0C0C13 #0C0C13 #242538 #3C3E5D #545683

Accessibility & contrast

On white

15.03
#242538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#242538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242538
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242538#FFFFFF#000000##FFFFFF
##2425381.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2739
Deuteranopia (green-blind)
#1F2638
Tritanopia (blue-blind)
#1F282C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #242538;
/* rgb */ color: rgb(36, 37, 56);
/* oklch */ color: oklch(27.3% 0.035 281.5);
Tailwind
colors: {
  custom: {
    50: '#5f5f6e',
    500: '#242538',
    950: '#000000',
  },
}
SCSS
$custom: #242538;
$custom-light: #5f5f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#242538",
  "rgb": {
    "r": 36,
    "g": 37,
    "b": 56
  },
  "hsl": {
    "h": 237,
    "s": 21.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27257,
    "c": 0.03514,
    "h": 281.5
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#242538
secondary
#6A684E
accent
#BA6ABE
background
#F5F5F6
surface
#E9E9EC
border
#C5C5C7
text
#040407
muted
#79797A

Preview Lab

Preview with #242538

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

Preview Lab → · Contrast checker → · Palette generator →

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