#183D87#183D87

#183D87 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.1% C 0.131 H 262.2°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#183D87
RGBrgb(24, 61, 135)
HSLhsl(220, 70%, 31%)
HSVhsv(220, 82%, 53%)
CMYKcmyk(82.2%, 54.8%, 0%, 47.1%)
CIE-LABlab(27.52, 16.02, -45.10)
CIE-LCHlch(27.52, 47.86, 289.55°)
OKLaboklab(38.07% -0.0179 -0.13)
OKLCHoklch(38.07% 0.131 262.2)
XYZxyz(6.4170, 5.2802, 23.5979)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183D87 #876218
analogous
#187487 #183D87 #2A1887
triadic
#183D87 #87183D #3D8718
tetradic
#183D87 #871874 #876218 #18872A
square
#183D87 #871874 #876218 #18872A
split-complementary
#183D87 #872A18 #748718
monochromatic
#060E1F #0F2653 #183D87 #2154BB #3D72DC

Accessibility & contrast

On white

10.21
#183D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#183D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #183D87
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##183D87#FFFFFF#000000##FFFFFF
##183D871.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03468A
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #183d87;
/* rgb */ color: rgb(24, 61, 135);
/* oklch */ color: oklch(38.1% 0.131 262.2);
Tailwind
colors: {
  custom: {
    50: '#6971ab',
    500: '#183d87',
    950: '#000000',
  },
}
SCSS
$custom: #183d87;
$custom-light: #6971ab;
$custom-dark: #000000;
JSON
{
  "hex": "#183d87",
  "rgb": {
    "r": 24,
    "g": 61,
    "b": 135
  },
  "hsl": {
    "h": 220,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38069,
    "c": 0.13126,
    "h": 262.2
  },
  "luminance": 0.05281
}

Semantic roles & 50–950 ramp

primary
#183D87
secondary
#BB9240
accent
#B13BED
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #183D87

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

Preview Lab → · Contrast checker → · Palette generator →

#183D87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva