#181371#181371

#181371 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.151 H 273.0°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#181371
RGBrgb(24, 19, 113)
HSLhsl(243, 71%, 26%)
HSVhsv(243, 83%, 44%)
CMYKcmyk(78.8%, 83.2%, 0%, 55.7%)
CIE-LABlab(14.69, 35.47, -52.16)
CIE-LCHlch(14.69, 63.07, 304.21°)
OKLaboklab(28.01% 0.008 -0.1509)
OKLCHoklch(28.01% 0.151 273)
XYZxyz(3.5892, 1.8518, 15.7879)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181371 #6C7113
analogous
#133D71 #181371 #471371
triadic
#181371 #711813 #137118
tetradic
#181371 #71133D #6C7113 #137147
square
#181371 #71133D #6C7113 #137147
split-complementary
#181371 #714713 #3D7113
monochromatic
#06041A #0D0A3D #181371 #231CA5 #2E25DA

Accessibility & contrast

On white

15.32
#181371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#181371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181371
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181371#FFFFFF#000000##FFFFFF
##1813711.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00206F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181371;
/* rgb */ color: rgb(24, 19, 113);
/* oklch */ color: oklch(28.0% 0.151 273.0);
Tailwind
colors: {
  custom: {
    50: '#66539b',
    500: '#181371',
    950: '#000000',
  },
}
SCSS
$custom: #181371;
$custom-light: #66539b;
$custom-dark: #000000;
JSON
{
  "hex": "#181371",
  "rgb": {
    "r": 24,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 243.191,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28007,
    "c": 0.15112,
    "h": 273
  },
  "luminance": 0.01852
}

Semantic roles & 50–950 ramp

primary
#181371
secondary
#A2A838
accent
#EE3AE4
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #181371

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

Preview Lab → · Contrast checker → · Palette generator →

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