#182371#182371

#182371 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.134 H 269.9°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#182371
RGBrgb(24, 35, 113)
HSLhsl(233, 65%, 27%)
HSVhsv(233, 79%, 44%)
CMYKcmyk(78.8%, 69%, 0%, 55.7%)
CIE-LABlab(18.31, 25.40, -46.18)
CIE-LCHlch(18.31, 52.71, 298.81°)
OKLaboklab(30.6% -0.0001 -0.1336)
OKLCHoklch(30.6% 0.134 269.9)
XYZxyz(3.9573, 2.5881, 15.9106)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182371 #716618
analogous
#185071 #182371 #3A1871
triadic
#182371 #711823 #237118
tetradic
#182371 #711850 #716618 #18713A
square
#182371 #711850 #716618 #18713A
split-complementary
#182371 #713A18 #507118
monochromatic
#050819 #0D133F #182371 #2333A3 #3044D3

Accessibility & contrast

On white

13.84
#182371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#182371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182371
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182371#FFFFFF#000000##FFFFFF
##1823711.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #182371;
/* rgb */ color: rgb(24, 35, 113);
/* oklch */ color: oklch(30.6% 0.134 269.9);
Tailwind
colors: {
  custom: {
    50: '#655e9b',
    500: '#182371',
    950: '#000000',
  },
}
SCSS
$custom: #182371;
$custom-light: #655e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#182371",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 232.584,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30597,
    "c": 0.1336,
    "h": 269.9
  },
  "luminance": 0.02589
}

Semantic roles & 50–950 ramp

primary
#182371
secondary
#A69A3E
accent
#D340E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #182371

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

Preview Lab → · Contrast checker → · Palette generator →

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