#182171#182171

#182171 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.136 H 270.5°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#182171
RGBrgb(24, 33, 113)
HSLhsl(234, 65%, 27%)
HSVhsv(234, 79%, 44%)
CMYKcmyk(78.8%, 70.8%, 0%, 55.7%)
CIE-LABlab(17.80, 26.77, -47.03)
CIE-LCHlch(17.80, 54.11, 299.65°)
OKLaboklab(30.22% 0.0011 -0.1361)
OKLCHoklch(30.22% 0.136 270.5)
XYZxyz(3.9002, 2.4737, 15.8915)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182171 #716818
analogous
#184E71 #182171 #3C1871
triadic
#182171 #711821 #217118
tetradic
#182171 #71184E #716818 #18713C
square
#182171 #71184E #716818 #18713C
split-complementary
#182171 #713C18 #4E7118
monochromatic
#050719 #0D123F #182171 #2330A3 #3041D3

Accessibility & contrast

On white

14.05
#182171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#182171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182171
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182171#FFFFFF#000000##FFFFFF
##1821711.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #182171;
/* rgb */ color: rgb(24, 33, 113);
/* oklch */ color: oklch(30.2% 0.136 270.5);
Tailwind
colors: {
  custom: {
    50: '#655c9b',
    500: '#182171',
    950: '#000000',
  },
}
SCSS
$custom: #182171;
$custom-light: #655c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#182171",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 233.933,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30223,
    "c": 0.13607,
    "h": 270.5
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#182171
secondary
#A69C3E
accent
#D740E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #182171

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

Preview Lab → · Contrast checker → · Palette generator →

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