#182A72#182A72

#182A72 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.1% C 0.126 H 267.7°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#182A72
RGBrgb(24, 42, 114)
HSLhsl(228, 65%, 27%)
HSVhsv(228, 79%, 45%)
CMYKcmyk(78.9%, 63.2%, 0%, 55.3%)
CIE-LABlab(20.30, 20.87, -43.57)
CIE-LCHlch(20.30, 48.31, 295.60°)
OKLaboklab(32.09% -0.005 -0.1259)
OKLCHoklch(32.09% 0.126 267.7)
XYZxyz(4.2409, 3.0646, 16.2843)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182A72 #726018
analogous
#185772 #182A72 #331872
triadic
#182A72 #72182A #2A7218
tetradic
#182A72 #721857 #726018 #187233
square
#182A72 #721857 #726018 #187233
split-complementary
#182A72 #723318 #577218
monochromatic
#050919 #0D173F #182A72 #233DA5 #3151D4

Accessibility & contrast

On white

13.02
#182A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#182A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182A72
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182A72#FFFFFF#000000##FFFFFF
##182A721.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #182a72;
/* rgb */ color: rgb(24, 42, 114);
/* oklch */ color: oklch(32.1% 0.126 267.7);
Tailwind
colors: {
  custom: {
    50: '#64639b',
    500: '#182a72',
    950: '#000000',
  },
}
SCSS
$custom: #182a72;
$custom-light: #64639b;
$custom-dark: #000000;
JSON
{
  "hex": "#182a72",
  "rgb": {
    "r": 24,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 228,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32092,
    "c": 0.12598,
    "h": 267.7
  },
  "luminance": 0.03065
}

Semantic roles & 50–950 ramp

primary
#182A72
secondary
#A7923E
accent
#C640E8
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #182A72

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

Preview Lab → · Contrast checker → · Palette generator →

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