#182D7C#182D7C

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

Color values

HEX#182D7C
RGBrgb(24, 45, 124)
HSLhsl(227, 68%, 29%)
HSVhsv(227, 81%, 49%)
CMYKcmyk(80.6%, 63.7%, 0%, 51.4%)
CIE-LABlab(22.04, 22.79, -47.12)
CIE-LCHlch(22.04, 52.35, 295.81°)
OKLaboklab(33.66% -0.0071 -0.1362)
OKLCHoklch(33.66% 0.136 267)
XYZxyz(4.9519, 3.5256, 19.4844)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182D7C #7C6718
analogous
#185F7C #182D7C #35187C
triadic
#182D7C #7C182D #2D7C18
tetradic
#182D7C #7C185F #7C6718 #187C35
square
#182D7C #7C185F #7C6718 #187C35
split-complementary
#182D7C #7C3518 #5F7C18
monochromatic
#05091A #0E1A49 #182D7C #2240AF #3658D8

Accessibility & contrast

On white

12.32
#182D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #182D7C
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182D7C#FFFFFF#000000##FFFFFF
##182D7C1.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #182d7c;
/* rgb */ color: rgb(24, 45, 124);
/* oklch */ color: oklch(33.7% 0.136 267.0);
Tailwind
colors: {
  custom: {
    50: '#6765a3',
    500: '#182d7c',
    950: '#000000',
  },
}
SCSS
$custom: #182d7c;
$custom-light: #6765a3;
$custom-dark: #000000;
JSON
{
  "hex": "#182d7c",
  "rgb": {
    "r": 24,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 227.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33662,
    "c": 0.13643,
    "h": 267
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#182D7C
secondary
#B1993F
accent
#C63DEA
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #182D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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