#182C81#182C81

#182C81 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.145 H 267.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#182C81
RGBrgb(24, 44, 129)
HSLhsl(229, 69%, 30%)
HSVhsv(229, 81%, 51%)
CMYKcmyk(81.4%, 65.9%, 0%, 49.4%)
CIE-LABlab(22.23, 25.49, -49.97)
CIE-LCHlch(22.23, 56.09, 297.03°)
OKLaboklab(33.95% -0.0065 -0.1446)
OKLCHoklch(33.95% 0.145 267.4)
XYZxyz(5.2384, 3.5799, 21.1795)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182C81 #816D18
analogous
#186181 #182C81 #381881
triadic
#182C81 #81182C #2C8118
tetradic
#182C81 #811861 #816D18 #188138
square
#182C81 #811861 #816D18 #188138
split-complementary
#182C81 #813818 #618118
monochromatic
#05091A #0E1A4D #182C81 #223EB5 #3958DA

Accessibility & contrast

On white

12.24
#182C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#182C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182C81
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182C81#FFFFFF#000000##FFFFFF
##182C811.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #182c81;
/* rgb */ color: rgb(24, 44, 129);
/* oklch */ color: oklch(33.9% 0.145 267.4);
Tailwind
colors: {
  custom: {
    50: '#6865a6',
    500: '#182c81',
    950: '#000000',
  },
}
SCSS
$custom: #182c81;
$custom-light: #6865a6;
$custom-dark: #000000;
JSON
{
  "hex": "#182c81",
  "rgb": {
    "r": 24,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 228.571,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.33948,
    "c": 0.14474,
    "h": 267.4
  },
  "luminance": 0.03581
}

Semantic roles & 50–950 ramp

primary
#182C81
secondary
#B59F40
accent
#CA3CEB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #182C81

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

Preview Lab → · Contrast checker → · Palette generator →

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