#182140#182140

#182140 is a dark, muted blue. Relative luminance 0.017; OKLCH L 25.7% C 0.060 H 269.6°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#182140
RGBrgb(24, 33, 64)
HSLhsl(227, 45%, 17%)
HSVhsv(227, 63%, 25%)
CMYKcmyk(62.5%, 48.4%, 0%, 74.9%)
CIE-LABlab(13.54, 7.05, -21.02)
CIE-LCHlch(13.54, 22.17, 288.55°)
OKLaboklab(25.72% -0.0004 -0.0597)
OKLCHoklch(25.72% 0.06 269.6)
XYZxyz(1.8457, 1.6519, 5.0711)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182140 #403718
analogous
#183540 #182140 #231840
triadic
#182140 #401821 #214018
tetradic
#182140 #401835 #403718 #184023
square
#182140 #401835 #403718 #184023
split-complementary
#182140 #402318 #354018
monochromatic
#080B16 #080B16 #182140 #29386D #394F99

Accessibility & contrast

On white

15.78
#182140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#182140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182140
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182140#FFFFFF#000000##FFFFFF
##1821401.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142541
Deuteranopia (green-blind)
#0F213F
Tritanopia (blue-blind)
#04282D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #182140;
/* rgb */ color: rgb(24, 33, 64);
/* oklch */ color: oklch(25.7% 0.060 269.6);
Tailwind
colors: {
  custom: {
    50: '#595b75',
    500: '#182140',
    950: '#000000',
  },
}
SCSS
$custom: #182140;
$custom-light: #595b75;
$custom-dark: #000000;
JSON
{
  "hex": "#182140",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 226.5,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25722,
    "c": 0.05973,
    "h": 269.6
  },
  "luminance": 0.01652
}

Semantic roles & 50–950 ramp

primary
#182140
secondary
#776A3D
accent
#B853D5
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #182140

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

Preview Lab → · Contrast checker → · Palette generator →

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