#182D7A#182D7A

#182D7A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.134 H 267.0°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#182D7A
RGBrgb(24, 45, 122)
HSLhsl(227, 67%, 29%)
HSVhsv(227, 80%, 48%)
CMYKcmyk(80.3%, 63.1%, 0%, 52.2%)
CIE-LABlab(21.86, 21.98, -46.15)
CIE-LCHlch(21.86, 51.12, 295.47°)
OKLaboklab(33.47% -0.0071 -0.1334)
OKLCHoklch(33.47% 0.134 267)
XYZxyz(4.8267, 3.4756, 18.8250)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182D7A #7A6518
analogous
#185E7A #182D7A #34187A
triadic
#182D7A #7A182D #2D7A18
tetradic
#182D7A #7A185E #7A6518 #187A34
square
#182D7A #7A185E #7A6518 #187A34
split-complementary
#182D7A #7A3418 #5E7A18
monochromatic
#05091A #0E1A47 #182D7A #2240AD #3558D7

Accessibility & contrast

On white

12.39
#182D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#182D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182D7A
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182D7A#FFFFFF#000000##FFFFFF
##182D7A1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #182d7a;
/* rgb */ color: rgb(24, 45, 122);
/* oklch */ color: oklch(33.5% 0.134 267.0);
Tailwind
colors: {
  custom: {
    50: '#6665a1',
    500: '#182d7a',
    950: '#000000',
  },
}
SCSS
$custom: #182d7a;
$custom-light: #6665a1;
$custom-dark: #000000;
JSON
{
  "hex": "#182d7a",
  "rgb": {
    "r": 24,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 227.143,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33471,
    "c": 0.13358,
    "h": 267
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#182D7A
secondary
#AF973F
accent
#C53EEA
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #182D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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