#182A7D#182A7D

#182A7D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.142 H 267.9°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#182A7D
RGBrgb(24, 42, 125)
HSLhsl(229, 68%, 29%)
HSVhsv(229, 81%, 49%)
CMYKcmyk(80.8%, 66.4%, 0%, 51%)
CIE-LABlab(21.32, 25.29, -48.93)
CIE-LCHlch(21.32, 55.08, 297.33°)
OKLaboklab(33.16% -0.0052 -0.1416)
OKLCHoklch(33.16% 0.142 267.9)
XYZxyz(4.9050, 3.3302, 19.7823)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182A7D #7D6B18
analogous
#185D7D #182A7D #39187D
triadic
#182A7D #7D182A #2A7D18
tetradic
#182A7D #7D185D #7D6B18 #187D39
square
#182A7D #7D185D #7D6B18 #187D39
split-complementary
#182A7D #7D3918 #5D7D18
monochromatic
#05091A #0E194A #182A7D #223BB0 #3754D9

Accessibility & contrast

On white

12.60
#182A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#182A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182A7D
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182A7D#FFFFFF#000000##FFFFFF
##182A7D1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #182a7d;
/* rgb */ color: rgb(24, 42, 125);
/* oklch */ color: oklch(33.2% 0.142 267.9);
Tailwind
colors: {
  custom: {
    50: '#6763a3',
    500: '#182a7d',
    950: '#000000',
  },
}
SCSS
$custom: #182a7d;
$custom-light: #6763a3;
$custom-dark: #000000;
JSON
{
  "hex": "#182a7d",
  "rgb": {
    "r": 24,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 229.307,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33161,
    "c": 0.14167,
    "h": 267.9
  },
  "luminance": 0.03331
}

Semantic roles & 50–950 ramp

primary
#182A7D
secondary
#B29D3F
accent
#CC3DEB
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #182A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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