#182D7F#182D7F

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

Color values

HEX#182D7F
RGBrgb(24, 45, 127)
HSLhsl(228, 68%, 30%)
HSVhsv(228, 81%, 50%)
CMYKcmyk(81.1%, 64.6%, 0%, 50.2%)
CIE-LABlab(22.31, 24.00, -48.57)
CIE-LCHlch(22.31, 54.18, 296.29°)
OKLaboklab(33.95% -0.0071 -0.1405)
OKLCHoklch(33.95% 0.141 267.1)
XYZxyz(5.1445, 3.6027, 20.4988)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182D7F #7F6A18
analogous
#18617F #182D7F #37187F
triadic
#182D7F #7F182D #2D7F18
tetradic
#182D7F #7F1861 #7F6A18 #187F37
square
#182D7F #7F1861 #7F6A18 #187F37
split-complementary
#182D7F #7F3718 #617F18
monochromatic
#05091A #0E1B4C #182D7F #223FB2 #3859D9

Accessibility & contrast

On white

12.21
#182D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#182D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182D7F
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182D7F#FFFFFF#000000##FFFFFF
##182D7F1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #182d7f;
/* rgb */ color: rgb(24, 45, 127);
/* oklch */ color: oklch(34.0% 0.141 267.1);
Tailwind
colors: {
  custom: {
    50: '#6865a5',
    500: '#182d7f',
    950: '#000000',
  },
}
SCSS
$custom: #182d7f;
$custom-light: #6865a5;
$custom-dark: #000000;
JSON
{
  "hex": "#182d7f",
  "rgb": {
    "r": 24,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 227.767,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3395,
    "c": 0.14068,
    "h": 267.1
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

primary
#182D7F
secondary
#B39C3F
accent
#C83DEB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #182D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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