#182158#182158

#182158 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.7% C 0.099 H 271.3°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#182158
RGBrgb(24, 33, 88)
HSLhsl(232, 57%, 22%)
HSVhsv(232, 73%, 35%)
CMYKcmyk(72.7%, 62.5%, 0%, 65.5%)
CIE-LABlab(15.41, 16.80, -34.46)
CIE-LCHlch(15.41, 38.34, 296.00°)
OKLaboklab(27.73% 0.0023 -0.0992)
OKLCHoklch(27.73% 0.099 271.3)
XYZxyz(2.6814, 1.9862, 9.4727)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182158 #584F18
analogous
#184158 #182158 #2F1858
triadic
#182158 #581821 #215818
tetradic
#182158 #581841 #584F18 #18582F
square
#182158 #581841 #584F18 #18582F
split-complementary
#182158 #582F18 #415818
monochromatic
#070918 #0B0F28 #182158 #253388 #3245B8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##182158#FFFFFF#000000##FFFFFF
##1821581.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)
#002A5A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #182158;
/* rgb */ color: rgb(24, 33, 88);
/* oklch */ color: oklch(27.7% 0.099 271.3);
Tailwind
colors: {
  custom: {
    50: '#5e5c88',
    500: '#182158',
    950: '#000000',
  },
}
SCSS
$custom: #182158;
$custom-light: #5e5c88;
$custom-dark: #000000;
JSON
{
  "hex": "#182158",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 231.563,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27734,
    "c": 0.09926,
    "h": 271.3
  },
  "luminance": 0.01986
}

Semantic roles & 50–950 ramp

primary
#182158
secondary
#8F833D
accent
#CB47E0
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #182158

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

Preview Lab → · Contrast checker → · Palette generator →

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