#182771#182771

#182771 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.128 H 268.7°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#182771
RGBrgb(24, 39, 113)
HSLhsl(230, 65%, 27%)
HSVhsv(230, 79%, 44%)
CMYKcmyk(78.8%, 65.5%, 0%, 55.7%)
CIE-LABlab(19.38, 22.60, -44.44)
CIE-LCHlch(19.38, 49.85, 296.96°)
OKLaboklab(31.38% -0.0028 -0.1284)
OKLCHoklch(31.38% 0.128 268.7)
XYZxyz(4.0818, 2.8370, 15.9521)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182771 #716218
analogous
#185471 #182771 #361871
triadic
#182771 #711827 #277118
tetradic
#182771 #711854 #716218 #187136
square
#182771 #711854 #716218 #187136
split-complementary
#182771 #713618 #547118
monochromatic
#050919 #0D163F #182771 #2338A3 #304CD3

Accessibility & contrast

On white

13.40
#182771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#182771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182771
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182771#FFFFFF#000000##FFFFFF
##1827711.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #182771;
/* rgb */ color: rgb(24, 39, 113);
/* oklch */ color: oklch(31.4% 0.128 268.7);
Tailwind
colors: {
  custom: {
    50: '#64619b',
    500: '#182771',
    950: '#000000',
  },
}
SCSS
$custom: #182771;
$custom-light: #64619b;
$custom-dark: #000000;
JSON
{
  "hex": "#182771",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 229.888,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3138,
    "c": 0.12848,
    "h": 268.7
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#182771
secondary
#A6953E
accent
#CC40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #182771

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

Preview Lab → · Contrast checker → · Palette generator →

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