#182154#182154

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

Color values

HEX#182154
RGBrgb(24, 33, 84)
HSLhsl(231, 56%, 21%)
HSVhsv(231, 71%, 33%)
CMYKcmyk(71.4%, 60.7%, 0%, 67.1%)
CIE-LABlab(15.07, 15.17, -32.32)
CIE-LCHlch(15.07, 35.70, 295.14°)
OKLaboklab(27.37% 0.0022 -0.0929)
OKLCHoklch(27.37% 0.093 271.3)
XYZxyz(2.5202, 1.9218, 8.6239)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182154 #544B18
analogous
#183F54 #182154 #2D1854
triadic
#182154 #541821 #215418
tetradic
#182154 #54183F #544B18 #18542D
square
#182154 #54183F #544B18 #18542D
split-complementary
#182154 #542D18 #3F5418
monochromatic
#070918 #0A0E24 #182154 #263484 #3346B3

Accessibility & contrast

On white

15.17
#182154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #182154
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182154#FFFFFF#000000##FFFFFF
##1821541.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #182154;
/* rgb */ color: rgb(24, 33, 84);
/* oklch */ color: oklch(27.4% 0.093 271.3);
Tailwind
colors: {
  custom: {
    50: '#5d5c85',
    500: '#182154',
    950: '#000000',
  },
}
SCSS
$custom: #182154;
$custom-light: #5d5c85;
$custom-dark: #000000;
JSON
{
  "hex": "#182154",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 231,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27369,
    "c": 0.09297,
    "h": 271.3
  },
  "luminance": 0.01922
}

Semantic roles & 50–950 ramp

primary
#182154
secondary
#8B7F3D
accent
#C849DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #182154

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

Preview Lab → · Contrast checker → · Palette generator →

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