#182172#182172

#182172 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.137 H 270.4°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#182172
RGBrgb(24, 33, 114)
HSLhsl(234, 65%, 27%)
HSVhsv(234, 79%, 45%)
CMYKcmyk(78.9%, 71.1%, 0%, 55.3%)
CIE-LABlab(17.90, 27.16, -47.50)
CIE-LCHlch(17.90, 54.72, 299.76°)
OKLaboklab(30.33% 0.001 -0.1375)
OKLCHoklch(30.33% 0.137 270.4)
XYZxyz(3.9568, 2.4964, 16.1896)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182172 #726918
analogous
#184E72 #182172 #3C1872
triadic
#182172 #721821 #217218
tetradic
#182172 #72184E #726918 #18723C
square
#182172 #72184E #726918 #18723C
split-complementary
#182172 #723C18 #4E7218
monochromatic
#050719 #0D123F #182172 #2330A5 #3141D4

Accessibility & contrast

On white

14.01
#182172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#182172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182172
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182172#FFFFFF#000000##FFFFFF
##1821721.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #182172;
/* rgb */ color: rgb(24, 33, 114);
/* oklch */ color: oklch(30.3% 0.137 270.4);
Tailwind
colors: {
  custom: {
    50: '#655c9b',
    500: '#182172',
    950: '#000000',
  },
}
SCSS
$custom: #182172;
$custom-light: #655c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#182172",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 234,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30329,
    "c": 0.13746,
    "h": 270.4
  },
  "luminance": 0.02497
}

Semantic roles & 50–950 ramp

primary
#182172
secondary
#A79D3E
accent
#D740E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #182172

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

Preview Lab → · Contrast checker → · Palette generator →

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