#182872#182872

#182872 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.129 H 268.4°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#182872
RGBrgb(24, 40, 114)
HSLhsl(229, 65%, 27%)
HSVhsv(229, 79%, 45%)
CMYKcmyk(78.9%, 64.9%, 0%, 55.3%)
CIE-LABlab(19.75, 22.29, -44.48)
CIE-LCHlch(19.75, 49.76, 296.62°)
OKLaboklab(31.68% -0.0035 -0.1286)
OKLCHoklch(31.68% 0.129 268.4)
XYZxyz(4.1717, 2.9262, 16.2613)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182872 #726218
analogous
#185572 #182872 #351872
triadic
#182872 #721828 #287218
tetradic
#182872 #721855 #726218 #187235
square
#182872 #721855 #726218 #187235
split-complementary
#182872 #723518 #557218
monochromatic
#050919 #0D163F #182872 #233AA5 #314ED4

Accessibility & contrast

On white

13.25
#182872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#182872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182872
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182872#FFFFFF#000000##FFFFFF
##1828721.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #182872;
/* rgb */ color: rgb(24, 40, 114);
/* oklch */ color: oklch(31.7% 0.129 268.4);
Tailwind
colors: {
  custom: {
    50: '#64619b',
    500: '#182872',
    950: '#000000',
  },
}
SCSS
$custom: #182872;
$custom-light: #64619b;
$custom-dark: #000000;
JSON
{
  "hex": "#182872",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 229.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3168,
    "c": 0.12861,
    "h": 268.4
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#182872
secondary
#A7953E
accent
#CA40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #182872

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

Preview Lab → · Contrast checker → · Palette generator →

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