#182871#182871

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

Color values

HEX#182871
RGBrgb(24, 40, 113)
HSLhsl(229, 65%, 27%)
HSVhsv(229, 79%, 44%)
CMYKcmyk(78.8%, 64.6%, 0%, 55.7%)
CIE-LABlab(19.65, 21.89, -43.99)
CIE-LCHlch(19.65, 49.13, 296.46°)
OKLaboklab(31.58% -0.0035 -0.1271)
OKLCHoklch(31.58% 0.127 268.4)
XYZxyz(4.1151, 2.9036, 15.9632)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182871 #716118
analogous
#185571 #182871 #341871
triadic
#182871 #711828 #287118
tetradic
#182871 #711855 #716118 #187134
square
#182871 #711855 #716118 #187134
split-complementary
#182871 #713418 #557118
monochromatic
#050919 #0D163F #182871 #233AA3 #304ED3

Accessibility & contrast

On white

13.28
#182871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#182871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182871
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182871#FFFFFF#000000##FFFFFF
##1828711.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #182871;
/* rgb */ color: rgb(24, 40, 113);
/* oklch */ color: oklch(31.6% 0.127 268.4);
Tailwind
colors: {
  custom: {
    50: '#64619b',
    500: '#182871',
    950: '#000000',
  },
}
SCSS
$custom: #182871;
$custom-light: #64619b;
$custom-dark: #000000;
JSON
{
  "hex": "#182871",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 229.213,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31583,
    "c": 0.12717,
    "h": 268.4
  },
  "luminance": 0.02904
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #182871

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

Preview Lab → · Contrast checker → · Palette generator →

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