#183158#183158

#183158 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.5% C 0.077 H 259.0°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#183158
RGBrgb(24, 49, 88)
HSLhsl(217, 57%, 22%)
HSVhsv(217, 73%, 35%)
CMYKcmyk(72.7%, 44.3%, 0%, 65.5%)
CIE-LABlab(20.42, 5.06, -26.40)
CIE-LCHlch(20.42, 26.88, 280.86°)
OKLaboklab(31.55% -0.0146 -0.0753)
OKLCHoklch(31.55% 0.077 259)
XYZxyz(3.2358, 3.0951, 9.6575)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183158 #583F18
analogous
#185158 #183158 #1F1858
triadic
#183158 #581831 #315818
tetradic
#183158 #581851 #583F18 #18581F
square
#183158 #581851 #583F18 #18581F
split-complementary
#183158 #581F18 #515818
monochromatic
#070D18 #0B1628 #183158 #254C88 #3267B8

Accessibility & contrast

On white

12.97
#183158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#183158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #183158
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##183158#FFFFFF#000000##FFFFFF
##1831581.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F345A
Deuteranopia (green-blind)
#152E57
Tritanopia (blue-blind)
#003A40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #183158;
/* rgb */ color: rgb(24, 49, 88);
/* oklch */ color: oklch(31.5% 0.077 259.0);
Tailwind
colors: {
  custom: {
    50: '#5d6887',
    500: '#183158',
    950: '#000000',
  },
}
SCSS
$custom: #183158;
$custom-light: #5d6887;
$custom-dark: #000000;
JSON
{
  "hex": "#183158",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 88
  },
  "hsl": {
    "h": 216.563,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31545,
    "c": 0.07668,
    "h": 259
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#183158
secondary
#8F6F3D
accent
#A547E0
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#05060B
muted
#797A7C

Preview Lab

Preview with #183158

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

Preview Lab → · Contrast checker → · Palette generator →

#183158 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva