#182971#182971

#182971 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.126 H 268.1°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#182971
RGBrgb(24, 41, 113)
HSLhsl(229, 65%, 27%)
HSVhsv(229, 79%, 44%)
CMYKcmyk(78.8%, 63.7%, 0%, 55.7%)
CIE-LABlab(19.93, 21.18, -43.53)
CIE-LCHlch(19.93, 48.41, 295.94°)
OKLaboklab(31.79% -0.0042 -0.1258)
OKLCHoklch(31.79% 0.126 268.1)
XYZxyz(4.1492, 2.9719, 15.9745)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182971 #716018
analogous
#185671 #182971 #331871
triadic
#182971 #711829 #297118
tetradic
#182971 #711856 #716018 #187133
square
#182971 #711856 #716018 #187133
split-complementary
#182971 #713318 #567118
monochromatic
#050919 #0D173F #182971 #233BA3 #304FD3

Accessibility & contrast

On white

13.17
#182971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #182971
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182971#FFFFFF#000000##FFFFFF
##1829711.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #182971;
/* rgb */ color: rgb(24, 41, 113);
/* oklch */ color: oklch(31.8% 0.126 268.1);
Tailwind
colors: {
  custom: {
    50: '#64629a',
    500: '#182971',
    950: '#000000',
  },
}
SCSS
$custom: #182971;
$custom-light: #64629a;
$custom-dark: #000000;
JSON
{
  "hex": "#182971",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 228.539,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31789,
    "c": 0.12585,
    "h": 268.1
  },
  "luminance": 0.02972
}

Semantic roles & 50–950 ramp

primary
#182971
secondary
#A6933E
accent
#C840E8
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #182971

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

Preview Lab → · Contrast checker → · Palette generator →

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