#182A8A#182A8A

#182A8A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.159 H 267.9°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#182A8A
RGBrgb(24, 42, 138)
HSLhsl(231, 70%, 32%)
HSVhsv(231, 83%, 54%)
CMYKcmyk(82.6%, 69.6%, 0%, 45.9%)
CIE-LABlab(22.60, 30.36, -55.01)
CIE-LCHlch(22.60, 62.83, 298.90°)
OKLaboklab(34.49% -0.0059 -0.1593)
OKLCHoklch(34.49% 0.159 267.9)
XYZxyz(5.7905, 3.6844, 24.4458)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182A8A #8A7818
analogous
#18638A #182A8A #3F188A
triadic
#182A8A #8A182A #2A8A18
tetradic
#182A8A #8A1863 #8A7818 #188A3F
square
#182A8A #8A1863 #8A7818 #188A3F
split-complementary
#182A8A #8A3F18 #638A18
monochromatic
#060A22 #0F1A56 #182A8A #213ABE #3F58DE

Accessibility & contrast

On white

12.09
#182A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#182A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182A8A
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182A8A#FFFFFF#000000##FFFFFF
##182A8A1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #182a8a;
/* rgb */ color: rgb(24, 42, 138);
/* oklch */ color: oklch(34.5% 0.159 267.9);
Tailwind
colors: {
  custom: {
    50: '#6b63ad',
    500: '#182a8a',
    950: '#000000',
  },
}
SCSS
$custom: #182a8a;
$custom-light: #6b63ad;
$custom-dark: #000000;
JSON
{
  "hex": "#182a8a",
  "rgb": {
    "r": 24,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 230.526,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34487,
    "c": 0.15944,
    "h": 267.9
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#182A8A
secondary
#BDAA40
accent
#D13BED
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #182A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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