#182F7D#182F7D

#182F7D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.135 H 266.4°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#182F7D
RGBrgb(24, 47, 125)
HSLhsl(226, 68%, 29%)
HSVhsv(226, 81%, 49%)
CMYKcmyk(80.8%, 62.4%, 0%, 51%)
CIE-LABlab(22.68, 21.79, -46.71)
CIE-LCHlch(22.68, 51.54, 295.01°)
OKLaboklab(34.17% -0.0084 -0.135)
OKLCHoklch(34.17% 0.135 266.4)
XYZxyz(5.0936, 3.7073, 19.8452)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182F7D #7D6618
analogous
#18627D #182F7D #34187D
triadic
#182F7D #7D182F #2F7D18
tetradic
#182F7D #7D1862 #7D6618 #187D34
square
#182F7D #7D1862 #7D6618 #187D34
split-complementary
#182F7D #7D3418 #627D18
monochromatic
#050A1A #0E1C4A #182F7D #2242B0 #375CD9

Accessibility & contrast

On white

12.06
#182F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#182F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182F7D
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182F7D#FFFFFF#000000##FFFFFF
##182F7D1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #182f7d;
/* rgb */ color: rgb(24, 47, 125);
/* oklch */ color: oklch(34.2% 0.135 266.4);
Tailwind
colors: {
  custom: {
    50: '#6767a3',
    500: '#182f7d',
    950: '#000000',
  },
}
SCSS
$custom: #182f7d;
$custom-light: #6767a3;
$custom-dark: #000000;
JSON
{
  "hex": "#182f7d",
  "rgb": {
    "r": 24,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 226.337,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34167,
    "c": 0.13526,
    "h": 266.4
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#182F7D
secondary
#B2983F
accent
#C33DEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #182F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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