#182A54#182A54

#182A54 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.080 H 264.6°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#182A54
RGBrgb(24, 42, 84)
HSLhsl(222, 56%, 21%)
HSVhsv(222, 71%, 33%)
CMYKcmyk(71.4%, 50%, 0%, 67.1%)
CIE-LABlab(17.87, 8.50, -27.80)
CIE-LCHlch(17.87, 29.07, 287.00°)
OKLaboklab(29.49% -0.0076 -0.0795)
OKLCHoklch(29.49% 0.08 264.6)
XYZxyz(2.8043, 2.4899, 8.7186)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182A54 #544218
analogous
#184854 #182A54 #241854
triadic
#182A54 #54182A #2A5418
tetradic
#182A54 #541848 #544218 #185424
square
#182A54 #541848 #544218 #185424
split-complementary
#182A54 #542418 #485418
monochromatic
#070C18 #0A1224 #182A54 #264284 #335AB3

Accessibility & contrast

On white

14.02
#182A54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#182A54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182A54
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182A54#FFFFFF#000000##FFFFFF
##182A541.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152F56
Deuteranopia (green-blind)
#0A2953
Tritanopia (blue-blind)
#00343A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #182a54;
/* rgb */ color: rgb(24, 42, 84);
/* oklch */ color: oklch(29.5% 0.080 264.6);
Tailwind
colors: {
  custom: {
    50: '#5d6384',
    500: '#182a54',
    950: '#000000',
  },
}
SCSS
$custom: #182a54;
$custom-light: #5d6384;
$custom-dark: #000000;
JSON
{
  "hex": "#182a54",
  "rgb": {
    "r": 24,
    "g": 42,
    "b": 84
  },
  "hsl": {
    "h": 222,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29493,
    "c": 0.07987,
    "h": 264.6
  },
  "luminance": 0.0249
}

Semantic roles & 50–950 ramp

primary
#182A54
secondary
#8B733D
accent
#B249DF
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #182A54

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

Preview Lab → · Contrast checker → · Palette generator →

#182A54 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva