#182D71#182D71

#182D71 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.6% C 0.120 H 266.5°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#182D71
RGBrgb(24, 45, 113)
HSLhsl(226, 65%, 27%)
HSVhsv(226, 79%, 44%)
CMYKcmyk(78.8%, 60.2%, 0%, 55.7%)
CIE-LABlab(21.07, 18.32, -41.68)
CIE-LCHlch(21.07, 45.53, 293.72°)
OKLaboklab(32.64% -0.0073 -0.1203)
OKLCHoklch(32.64% 0.121 266.5)
XYZxyz(4.2947, 3.2627, 16.0230)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182D71 #715C18
analogous
#185A71 #182D71 #301871
triadic
#182D71 #71182D #2D7118
tetradic
#182D71 #71185A #715C18 #187130
square
#182D71 #71185A #715C18 #187130
split-complementary
#182D71 #713018 #5A7118
monochromatic
#050A19 #0D193F #182D71 #2341A3 #3057D3

Accessibility & contrast

On white

12.71
#182D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#182D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182D71
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182D71#FFFFFF#000000##FFFFFF
##182D711.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #182d71;
/* rgb */ color: rgb(24, 45, 113);
/* oklch */ color: oklch(32.6% 0.120 266.5);
Tailwind
colors: {
  custom: {
    50: '#64659a',
    500: '#182d71',
    950: '#000000',
  },
}
SCSS
$custom: #182d71;
$custom-light: #64659a;
$custom-dark: #000000;
JSON
{
  "hex": "#182d71",
  "rgb": {
    "r": 24,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 225.843,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32636,
    "c": 0.1205,
    "h": 266.5
  },
  "luminance": 0.03263
}

Semantic roles & 50–950 ramp

primary
#182D71
secondary
#A68E3E
accent
#C040E8
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #182D71

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

Preview Lab → · Contrast checker → · Palette generator →

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