#182271#182271

#182271 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.135 H 270.2°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#182271
RGBrgb(24, 34, 113)
HSLhsl(233, 65%, 27%)
HSVhsv(233, 79%, 44%)
CMYKcmyk(78.8%, 69.9%, 0%, 55.7%)
CIE-LABlab(18.05, 26.09, -46.61)
CIE-LCHlch(18.05, 53.41, 299.24°)
OKLaboklab(30.41% 0.0005 -0.1348)
OKLCHoklch(30.41% 0.135 270.2)
XYZxyz(3.9283, 2.5301, 15.9009)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182271 #716718
analogous
#184F71 #182271 #3A1871
triadic
#182271 #711822 #227118
tetradic
#182271 #71184F #716718 #18713A
square
#182271 #71184F #716718 #18713A
split-complementary
#182271 #713A18 #4F7118
monochromatic
#050819 #0D133F #182271 #2331A3 #3043D3

Accessibility & contrast

On white

13.94
#182271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#182271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182271
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182271#FFFFFF#000000##FFFFFF
##1822711.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #182271;
/* rgb */ color: rgb(24, 34, 113);
/* oklch */ color: oklch(30.4% 0.135 270.2);
Tailwind
colors: {
  custom: {
    50: '#655d9b',
    500: '#182271',
    950: '#000000',
  },
}
SCSS
$custom: #182271;
$custom-light: #655d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#182271",
  "rgb": {
    "r": 24,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 233.258,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30409,
    "c": 0.13484,
    "h": 270.2
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#182271
secondary
#A69B3E
accent
#D540E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #182271

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

Preview Lab → · Contrast checker → · Palette generator →

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