#182A7B#182A7B

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

Color values

HEX#182A7B
RGBrgb(24, 42, 123)
HSLhsl(229, 67%, 29%)
HSVhsv(229, 80%, 48%)
CMYKcmyk(80.5%, 65.9%, 0%, 51.8%)
CIE-LABlab(21.13, 24.49, -47.97)
CIE-LCHlch(21.13, 53.86, 297.05°)
OKLaboklab(32.96% -0.0051 -0.1388)
OKLCHoklch(32.96% 0.139 267.9)
XYZxyz(4.7786, 3.2796, 19.1162)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182A7B #7B6918
analogous
#185C7B #182A7B #38187B
triadic
#182A7B #7B182A #2A7B18
tetradic
#182A7B #7B185C #7B6918 #187B38
square
#182A7B #7B185C #7B6918 #187B38
split-complementary
#182A7B #7B3818 #5C7B18
monochromatic
#05091A #0E1948 #182A7B #223BAE #3653D8

Accessibility & contrast

On white

12.68
#182A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#182A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182A7B
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182A7B#FFFFFF#000000##FFFFFF
##182A7B1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #182a7b;
/* rgb */ color: rgb(24, 42, 123);
/* oklch */ color: oklch(33.0% 0.139 267.9);
Tailwind
colors: {
  custom: {
    50: '#6763a2',
    500: '#182a7b',
    950: '#000000',
  },
}
SCSS
$custom: #182a7b;
$custom-light: #6763a2;
$custom-dark: #000000;
JSON
{
  "hex": "#182a7b",
  "rgb": {
    "r": 24,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 229.091,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32963,
    "c": 0.13886,
    "h": 267.9
  },
  "luminance": 0.0328
}

Semantic roles & 50–950 ramp

primary
#182A7B
secondary
#B09B3F
accent
#CB3EEA
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #182A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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