#181271#181271

#181271 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.152 H 273.2°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#181271
RGBrgb(24, 18, 113)
HSLhsl(244, 73%, 26%)
HSVhsv(244, 84%, 44%)
CMYKcmyk(78.8%, 84.1%, 0%, 55.7%)
CIE-LABlab(14.51, 36.00, -52.46)
CIE-LCHlch(14.51, 63.63, 304.46°)
OKLaboklab(27.88% 0.0084 -0.1518)
OKLCHoklch(27.88% 0.152 273.2)
XYZxyz(3.5726, 1.8187, 15.7823)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181271 #6B7112
analogous
#123C71 #181271 #471271
triadic
#181271 #711812 #127118
tetradic
#181271 #71123C #6B7112 #127147
square
#181271 #71123C #6B7112 #127147
split-complementary
#181271 #714712 #3C7112
monochromatic
#06041A #0D0A3C #181271 #231AA6 #2E23DB

Accessibility & contrast

On white

15.40
#181271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#181271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181271
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181271#FFFFFF#000000##FFFFFF
##1812711.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.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: #181271;
/* rgb */ color: rgb(24, 18, 113);
/* oklch */ color: oklch(27.9% 0.152 273.2);
Tailwind
colors: {
  custom: {
    50: '#67539b',
    500: '#181271',
    950: '#000000',
  },
}
SCSS
$custom: #181271;
$custom-light: #67539b;
$custom-dark: #000000;
JSON
{
  "hex": "#181271",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 243.789,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27879,
    "c": 0.15201,
    "h": 273.2
  },
  "luminance": 0.01819
}

Semantic roles & 50–950 ramp

primary
#181271
secondary
#A1A837
accent
#EF39E4
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #181271

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

Preview Lab → · Contrast checker → · Palette generator →

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