#182142#182142

#182142 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.9% C 0.063 H 270.0°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#182142
RGBrgb(24, 33, 66)
HSLhsl(227, 47%, 18%)
HSVhsv(227, 64%, 26%)
CMYKcmyk(63.6%, 50%, 0%, 74.1%)
CIE-LABlab(13.68, 7.85, -22.20)
CIE-LCHlch(13.68, 23.55, 289.48°)
OKLaboklab(25.87% 0.0001 -0.0632)
OKLCHoklch(25.87% 0.063 270)
XYZxyz(1.9036, 1.6751, 5.3762)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182142 #423918
analogous
#183642 #182142 #241842
triadic
#182142 #421821 #214218
tetradic
#182142 #421836 #423918 #184224
square
#182142 #421836 #423918 #184224
split-complementary
#182142 #422418 #364218
monochromatic
#080B16 #080B16 #182142 #28376F #394E9C

Accessibility & contrast

On white

15.73
#182142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#182142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182142
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182142#FFFFFF#000000##FFFFFF
##1821421.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122543
Deuteranopia (green-blind)
#0D2141
Tritanopia (blue-blind)
#02282E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #182142;
/* rgb */ color: rgb(24, 33, 66);
/* oklch */ color: oklch(25.9% 0.063 270.0);
Tailwind
colors: {
  custom: {
    50: '#595b76',
    500: '#182142',
    950: '#000000',
  },
}
SCSS
$custom: #182142;
$custom-light: #595b76;
$custom-dark: #000000;
JSON
{
  "hex": "#182142",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 66
  },
  "hsl": {
    "h": 227.143,
    "s": 46.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25872,
    "c": 0.06318,
    "h": 270
  },
  "luminance": 0.01675
}

Semantic roles & 50–950 ramp

primary
#182142
secondary
#796C3D
accent
#BA51D6
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040408
muted
#79797B

Preview Lab

Preview with #182142

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

Preview Lab → · Contrast checker → · Palette generator →

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