#183157#183157

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

Color values

HEX#183157
RGBrgb(24, 49, 87)
HSLhsl(216, 57%, 22%)
HSVhsv(216, 72%, 34%)
CMYKcmyk(72.4%, 43.7%, 0%, 65.9%)
CIE-LABlab(20.36, 4.66, -25.84)
CIE-LCHlch(20.36, 26.25, 280.21°)
OKLaboklab(31.47% -0.0149 -0.0736)
OKLCHoklch(31.47% 0.075 258.6)
XYZxyz(3.1947, 3.0786, 9.4408)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183157 #573E18
analogous
#185157 #183157 #1E1857
triadic
#183157 #571831 #315718
tetradic
#183157 #571851 #573E18 #18571E
square
#183157 #571851 #573E18 #18571E
split-complementary
#183157 #571E18 #515718
monochromatic
#070E18 #0B1627 #183157 #254C87 #3267B7

Accessibility & contrast

On white

13.00
#183157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #183157
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##183157#FFFFFF#000000##FFFFFF
##1831571.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203459
Deuteranopia (green-blind)
#162E56
Tritanopia (blue-blind)
#003A3F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #183157;
/* rgb */ color: rgb(24, 49, 87);
/* oklch */ color: oklch(31.5% 0.075 258.6);
Tailwind
colors: {
  custom: {
    50: '#5d6886',
    500: '#183157',
    950: '#000000',
  },
}
SCSS
$custom: #183157;
$custom-light: #5d6886;
$custom-dark: #000000;
JSON
{
  "hex": "#183157",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 87
  },
  "hsl": {
    "h": 216.19,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.31473,
    "c": 0.07511,
    "h": 258.6
  },
  "luminance": 0.03079
}

Semantic roles & 50–950 ramp

primary
#183157
secondary
#8E6E3D
accent
#A448E0
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#05060B
muted
#797A7C

Preview Lab

Preview with #183157

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

Preview Lab → · Contrast checker → · Palette generator →

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