#182D7D#182D7D

#182D7D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.138 H 267.1°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#182D7D
RGBrgb(24, 45, 125)
HSLhsl(228, 68%, 29%)
HSVhsv(228, 81%, 49%)
CMYKcmyk(80.8%, 64%, 0%, 51%)
CIE-LABlab(22.13, 23.20, -47.61)
CIE-LCHlch(22.13, 52.96, 295.98°)
OKLaboklab(33.76% -0.0071 -0.1377)
OKLCHoklch(33.76% 0.138 267.1)
XYZxyz(5.0155, 3.5511, 19.8192)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182D7D #7D6818
analogous
#18607D #182D7D #36187D
triadic
#182D7D #7D182D #2D7D18
tetradic
#182D7D #7D1860 #7D6818 #187D36
square
#182D7D #7D1860 #7D6818 #187D36
split-complementary
#182D7D #7D3618 #607D18
monochromatic
#05091A #0E1B4A #182D7D #223FB0 #3758D9

Accessibility & contrast

On white

12.28
#182D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#182D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182D7D
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182D7D#FFFFFF#000000##FFFFFF
##182D7D1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #182d7d;
/* rgb */ color: rgb(24, 45, 125);
/* oklch */ color: oklch(33.8% 0.138 267.1);
Tailwind
colors: {
  custom: {
    50: '#6765a3',
    500: '#182d7d',
    950: '#000000',
  },
}
SCSS
$custom: #182d7d;
$custom-light: #6765a3;
$custom-dark: #000000;
JSON
{
  "hex": "#182d7d",
  "rgb": {
    "r": 24,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 227.525,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33758,
    "c": 0.13785,
    "h": 267.1
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#182D7D
secondary
#B29A3F
accent
#C73DEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #182D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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