#182F5F#182F5F

#182F5F is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.6% C 0.090 H 263.0°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#182F5F
RGBrgb(24, 47, 95)
HSLhsl(221, 60%, 23%)
HSVhsv(221, 75%, 37%)
CMYKcmyk(74.7%, 50.5%, 0%, 62.7%)
CIE-LABlab(20.26, 9.41, -31.29)
CIE-LCHlch(20.26, 32.67, 286.73°)
OKLaboklab(31.57% -0.011 -0.0897)
OKLCHoklch(31.57% 0.09 263)
XYZxyz(3.4580, 3.0531, 11.2313)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182F5F #5F4818
analogous
#18525F #182F5F #24185F
triadic
#182F5F #5F182F #2F5F18
tetradic
#182F5F #5F1852 #5F4818 #185F24
square
#182F5F #5F1852 #5F4818 #185F24
split-complementary
#182F5F #5F2418 #525F18
monochromatic
#060C18 #0C172E #182F5F #244790 #315FC1

Accessibility & contrast

On white

13.04
#182F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#182F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182F5F
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182F5F#FFFFFF#000000##FFFFFF
##182F5F1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163461
Deuteranopia (green-blind)
#062E5E
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #182f5f;
/* rgb */ color: rgb(24, 47, 95);
/* oklch */ color: oklch(31.6% 0.090 263.0);
Tailwind
colors: {
  custom: {
    50: '#5f678d',
    500: '#182f5f',
    950: '#000000',
  },
}
SCSS
$custom: #182f5f;
$custom-light: #5f678d;
$custom-dark: #000000;
JSON
{
  "hex": "#182f5f",
  "rgb": {
    "r": 24,
    "g": 47,
    "b": 95
  },
  "hsl": {
    "h": 220.563,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.31572,
    "c": 0.09034,
    "h": 263
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#182F5F
secondary
#95793D
accent
#B045E3
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #182F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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