#183171#183171

#183171 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.5% C 0.115 H 264.7°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#183171
RGBrgb(24, 49, 113)
HSLhsl(223, 65%, 27%)
HSVhsv(223, 79%, 44%)
CMYKcmyk(78.8%, 56.6%, 0%, 55.7%)
CIE-LABlab(22.24, 15.44, -39.78)
CIE-LCHlch(22.24, 42.67, 291.22°)
OKLaboklab(33.52% -0.0105 -0.1146)
OKLCHoklch(33.52% 0.115 264.7)
XYZxyz(4.4546, 3.5826, 16.0763)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183171 #715818
analogous
#185E71 #183171 #2C1871
triadic
#183171 #711831 #317118
tetradic
#183171 #71185E #715818 #18712C
square
#183171 #71185E #715818 #18712C
split-complementary
#183171 #712C18 #5E7118
monochromatic
#050B19 #0D1B3F #183171 #2347A3 #305ED3

Accessibility & contrast

On white

12.23
#183171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#183171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #183171
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##183171#FFFFFF#000000##FFFFFF
##1831711.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #183171;
/* rgb */ color: rgb(24, 49, 113);
/* oklch */ color: oklch(33.5% 0.115 264.7);
Tailwind
colors: {
  custom: {
    50: '#63689a',
    500: '#183171',
    950: '#000000',
  },
}
SCSS
$custom: #183171;
$custom-light: #63689a;
$custom-dark: #000000;
JSON
{
  "hex": "#183171",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 223.146,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3352,
    "c": 0.11509,
    "h": 264.7
  },
  "luminance": 0.03583
}

Semantic roles & 50–950 ramp

primary
#183171
secondary
#A6893E
accent
#B940E8
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #183171

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

Preview Lab → · Contrast checker → · Palette generator →

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