#183172#183172

#183172 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.6% C 0.117 H 264.9°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#183172
RGBrgb(24, 49, 114)
HSLhsl(223, 65%, 27%)
HSVhsv(223, 79%, 45%)
CMYKcmyk(78.9%, 57%, 0%, 55.3%)
CIE-LABlab(22.32, 15.86, -40.29)
CIE-LCHlch(22.32, 43.29, 291.48°)
OKLaboklab(33.61% -0.0105 -0.1161)
OKLCHoklch(33.61% 0.117 264.9)
XYZxyz(4.5112, 3.6052, 16.3744)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183172 #725918
analogous
#185E72 #183172 #2C1872
triadic
#183172 #721831 #317218
tetradic
#183172 #72185E #725918 #18722C
square
#183172 #72185E #725918 #18722C
split-complementary
#183172 #722C18 #5E7218
monochromatic
#050B19 #0D1B3F #183172 #2347A5 #315ED4

Accessibility & contrast

On white

12.20
#183172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #183172
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##183172#FFFFFF#000000##FFFFFF
##1831721.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #183172;
/* rgb */ color: rgb(24, 49, 114);
/* oklch */ color: oklch(33.6% 0.117 264.9);
Tailwind
colors: {
  custom: {
    50: '#64689b',
    500: '#183172',
    950: '#000000',
  },
}
SCSS
$custom: #183172;
$custom-light: #64689b;
$custom-dark: #000000;
JSON
{
  "hex": "#183172",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 223.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33606,
    "c": 0.11658,
    "h": 264.9
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #183172

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

Preview Lab → · Contrast checker → · Palette generator →

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