#182152#182152

#182152 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.090 H 271.3°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#182152
RGBrgb(24, 33, 82)
HSLhsl(231, 55%, 21%)
HSVhsv(231, 71%, 32%)
CMYKcmyk(70.7%, 59.8%, 0%, 67.8%)
CIE-LABlab(14.90, 14.35, -31.24)
CIE-LCHlch(14.90, 34.38, 294.68°)
OKLaboklab(27.19% 0.0021 -0.0897)
OKLCHoklch(27.19% 0.09 271.3)
XYZxyz(2.4430, 1.8909, 8.2172)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182152 #524918
analogous
#183E52 #182152 #2C1852
triadic
#182152 #521821 #215218
tetradic
#182152 #52183E #524918 #18522C
square
#182152 #52183E #524918 #18522C
split-complementary
#182152 #522C18 #3E5218
monochromatic
#070A18 #0A0E23 #182152 #263481 #3447B1

Accessibility & contrast

On white

15.24
#182152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#182152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182152
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182152#FFFFFF#000000##FFFFFF
##1821521.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #182152;
/* rgb */ color: rgb(24, 33, 82);
/* oklch */ color: oklch(27.2% 0.090 271.3);
Tailwind
colors: {
  custom: {
    50: '#5d5b83',
    500: '#182152',
    950: '#000000',
  },
}
SCSS
$custom: #182152;
$custom-light: #5d5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#182152",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 230.69,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.2719,
    "c": 0.08977,
    "h": 271.3
  },
  "luminance": 0.01891
}

Semantic roles & 50–950 ramp

primary
#182152
secondary
#897D3D
accent
#C74ADE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #182152

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

Preview Lab → · Contrast checker → · Palette generator →

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