#182F52#182F52

#182F52 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.6% C 0.070 H 258.6°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#182F52
RGBrgb(24, 47, 82)
HSLhsl(216, 55%, 21%)
HSVhsv(216, 71%, 32%)
CMYKcmyk(70.7%, 42.7%, 0%, 67.8%)
CIE-LABlab(19.38, 4.04, -24.06)
CIE-LCHlch(19.38, 24.40, 279.53°)
OKLaboklab(30.61% -0.0138 -0.0684)
OKLCHoklch(30.61% 0.07 258.6)
XYZxyz(2.9157, 2.8361, 8.3748)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182F52 #523B18
analogous
#184C52 #182F52 #1E1852
triadic
#182F52 #52182F #2F5218
tetradic
#182F52 #52184C #523B18 #18521E
square
#182F52 #52184C #523B18 #18521E
split-complementary
#182F52 #521E18 #4C5218
monochromatic
#070E18 #0A1423 #182F52 #264A81 #3465B1

Accessibility & contrast

On white

13.40
#182F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#182F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182F52
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182F52#FFFFFF#000000##FFFFFF
##182F521.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3253
Deuteranopia (green-blind)
#172C51
Tritanopia (blue-blind)
#00373C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #182f52;
/* rgb */ color: rgb(24, 47, 82);
/* oklch */ color: oklch(30.6% 0.070 258.6);
Tailwind
colors: {
  custom: {
    50: '#5c6783',
    500: '#182f52',
    950: '#000000',
  },
}
SCSS
$custom: #182f52;
$custom-light: #5c6783;
$custom-dark: #000000;
JSON
{
  "hex": "#182f52",
  "rgb": {
    "r": 24,
    "g": 47,
    "b": 82
  },
  "hsl": {
    "h": 216.207,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30608,
    "c": 0.06984,
    "h": 258.6
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#182F52
secondary
#896B3D
accent
#A34ADE
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060A
muted
#797A7C

Preview Lab

Preview with #182F52

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

Preview Lab → · Contrast checker → · Palette generator →

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