#182A71#182A71

#182A71 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.0% C 0.125 H 267.7°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#182A71
RGBrgb(24, 42, 113)
HSLhsl(228, 65%, 27%)
HSVhsv(228, 79%, 44%)
CMYKcmyk(78.8%, 62.8%, 0%, 55.7%)
CIE-LABlab(20.21, 20.47, -43.08)
CIE-LCHlch(20.21, 47.69, 295.41°)
OKLaboklab(32% -0.005 -0.1244)
OKLCHoklch(32% 0.125 267.7)
XYZxyz(4.1843, 3.0419, 15.9862)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182A71 #715F18
analogous
#185771 #182A71 #331871
triadic
#182A71 #71182A #2A7118
tetradic
#182A71 #711857 #715F18 #187133
square
#182A71 #711857 #715F18 #187133
split-complementary
#182A71 #713318 #577118
monochromatic
#050919 #0D173F #182A71 #233DA3 #3051D3

Accessibility & contrast

On white

13.06
#182A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #182A71
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182A71#FFFFFF#000000##FFFFFF
##182A711.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #182a71;
/* rgb */ color: rgb(24, 42, 113);
/* oklch */ color: oklch(32.0% 0.125 267.7);
Tailwind
colors: {
  custom: {
    50: '#64639a',
    500: '#182a71',
    950: '#000000',
  },
}
SCSS
$custom: #182a71;
$custom-light: #64639a;
$custom-dark: #000000;
JSON
{
  "hex": "#182a71",
  "rgb": {
    "r": 24,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 227.865,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31997,
    "c": 0.12452,
    "h": 267.7
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #182A71

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

Preview Lab → · Contrast checker → · Palette generator →

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