#182D7E#182D7E

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

Color values

HEX#182D7E
RGBrgb(24, 45, 126)
HSLhsl(228, 68%, 29%)
HSVhsv(228, 81%, 49%)
CMYKcmyk(81%, 64.3%, 0%, 50.6%)
CIE-LABlab(22.22, 23.60, -48.09)
CIE-LCHlch(22.22, 53.57, 296.14°)
OKLaboklab(33.85% -0.0071 -0.1391)
OKLCHoklch(33.85% 0.139 267.1)
XYZxyz(5.0797, 3.5767, 20.1573)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182D7E #7E6918
analogous
#18607E #182D7E #36187E
triadic
#182D7E #7E182D #2D7E18
tetradic
#182D7E #7E1860 #7E6918 #187E36
square
#182D7E #7E1860 #7E6918 #187E36
split-complementary
#182D7E #7E3618 #607E18
monochromatic
#05091A #0E1B4B #182D7E #223FB1 #3759D9

Accessibility & contrast

On white

12.24
#182D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #182D7E
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182D7E#FFFFFF#000000##FFFFFF
##182D7E1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #182d7e;
/* rgb */ color: rgb(24, 45, 126);
/* oklch */ color: oklch(33.9% 0.139 267.1);
Tailwind
colors: {
  custom: {
    50: '#6765a4',
    500: '#182d7e',
    950: '#000000',
  },
}
SCSS
$custom: #182d7e;
$custom-light: #6765a4;
$custom-dark: #000000;
JSON
{
  "hex": "#182d7e",
  "rgb": {
    "r": 24,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 227.647,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33854,
    "c": 0.13927,
    "h": 267.1
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #182D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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