#182A7E#182A7E

#182A7E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.143 H 267.9°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#182A7E
RGBrgb(24, 42, 126)
HSLhsl(229, 68%, 29%)
HSVhsv(229, 81%, 49%)
CMYKcmyk(81%, 66.7%, 0%, 50.6%)
CIE-LABlab(21.42, 25.68, -49.41)
CIE-LCHlch(21.42, 55.68, 297.47°)
OKLaboklab(33.26% -0.0052 -0.143)
OKLCHoklch(33.26% 0.143 267.9)
XYZxyz(4.9692, 3.3559, 20.1205)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182A7E #7E6C18
analogous
#185D7E #182A7E #39187E
triadic
#182A7E #7E182A #2A7E18
tetradic
#182A7E #7E185D #7E6C18 #187E39
square
#182A7E #7E185D #7E6C18 #187E39
split-complementary
#182A7E #7E3918 #5D7E18
monochromatic
#05091A #0E194B #182A7E #223BB1 #3754D9

Accessibility & contrast

On white

12.57
#182A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #182A7E
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182A7E#FFFFFF#000000##FFFFFF
##182A7E1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #182a7e;
/* rgb */ color: rgb(24, 42, 126);
/* oklch */ color: oklch(33.3% 0.143 267.9);
Tailwind
colors: {
  custom: {
    50: '#6863a4',
    500: '#182a7e',
    950: '#000000',
  },
}
SCSS
$custom: #182a7e;
$custom-light: #6863a4;
$custom-dark: #000000;
JSON
{
  "hex": "#182a7e",
  "rgb": {
    "r": 24,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 229.412,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33261,
    "c": 0.14306,
    "h": 267.9
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#182A7E
secondary
#B29E3F
accent
#CC3DEB
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #182A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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