#182F81#182F81

#182F81 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.141 H 266.6°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#182F81
RGBrgb(24, 47, 129)
HSLhsl(227, 69%, 30%)
HSVhsv(227, 81%, 51%)
CMYKcmyk(81.4%, 63.6%, 0%, 49.4%)
CIE-LABlab(23.04, 23.40, -48.64)
CIE-LCHlch(23.04, 53.98, 295.69°)
OKLaboklab(34.55% -0.0084 -0.1407)
OKLCHoklch(34.55% 0.141 266.6)
XYZxyz(5.3543, 3.8116, 21.2181)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182F81 #816A18
analogous
#186481 #182F81 #351881
triadic
#182F81 #81182F #2F8118
tetradic
#182F81 #811864 #816A18 #188135
square
#182F81 #811864 #816A18 #188135
split-complementary
#182F81 #813518 #648118
monochromatic
#05091A #0E1C4D #182F81 #2242B5 #395CDA

Accessibility & contrast

On white

11.92
#182F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#182F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182F81
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182F81#FFFFFF#000000##FFFFFF
##182F811.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #182f81;
/* rgb */ color: rgb(24, 47, 129);
/* oklch */ color: oklch(34.5% 0.141 266.6);
Tailwind
colors: {
  custom: {
    50: '#6867a6',
    500: '#182f81',
    950: '#000000',
  },
}
SCSS
$custom: #182f81;
$custom-light: #6867a6;
$custom-dark: #000000;
JSON
{
  "hex": "#182f81",
  "rgb": {
    "r": 24,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 226.857,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.34546,
    "c": 0.14093,
    "h": 266.6
  },
  "luminance": 0.03812
}

Semantic roles & 50–950 ramp

primary
#182F81
secondary
#B59B40
accent
#C53CEB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #182F81

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

Preview Lab → · Contrast checker → · Palette generator →

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