#182781#182781

#182781 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.151 H 268.6°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#182781
RGBrgb(24, 39, 129)
HSLhsl(231, 69%, 30%)
HSVhsv(231, 81%, 51%)
CMYKcmyk(81.4%, 69.8%, 0%, 49.4%)
CIE-LABlab(20.94, 28.91, -52.08)
CIE-LCHlch(20.94, 59.57, 299.03°)
OKLaboklab(33% -0.0037 -0.1508)
OKLCHoklch(33% 0.151 268.6)
XYZxyz(5.0633, 3.2296, 21.1211)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182781 #817218
analogous
#185B81 #182781 #3E1881
triadic
#182781 #811827 #278118
tetradic
#182781 #81185B #817218 #18813E
square
#182781 #81185B #817218 #18813E
split-complementary
#182781 #813E18 #5B8118
monochromatic
#05081A #0E174D #182781 #2237B5 #3950DA

Accessibility & contrast

On white

12.76
#182781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#182781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182781
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182781#FFFFFF#000000##FFFFFF
##1827811.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #182781;
/* rgb */ color: rgb(24, 39, 129);
/* oklch */ color: oklch(33.0% 0.151 268.6);
Tailwind
colors: {
  custom: {
    50: '#6961a7',
    500: '#182781',
    950: '#000000',
  },
}
SCSS
$custom: #182781;
$custom-light: #6961a7;
$custom-dark: #000000;
JSON
{
  "hex": "#182781",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 129
  },
  "hsl": {
    "h": 231.429,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.33003,
    "c": 0.15087,
    "h": 268.6
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#182781
secondary
#B5A440
accent
#D23CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #182781

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

Preview Lab → · Contrast checker → · Palette generator →

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