#181272#181272

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

Color values

HEX#181272
RGBrgb(24, 18, 114)
HSLhsl(244, 73%, 26%)
HSVhsv(244, 84%, 45%)
CMYKcmyk(78.9%, 84.2%, 0%, 55.3%)
CIE-LABlab(14.63, 36.34, -52.90)
CIE-LCHlch(14.63, 64.18, 304.48°)
OKLaboklab(28% 0.0081 -0.1531)
OKLCHoklch(28% 0.153 273)
XYZxyz(3.6292, 1.8413, 16.0805)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181272 #6C7212
analogous
#123C72 #181272 #481272
triadic
#181272 #721812 #127218
tetradic
#181272 #72123C #6C7212 #127248
square
#181272 #72123C #6C7212 #127248
split-complementary
#181272 #724812 #3C7212
monochromatic
#06041A #0D0A3D #181272 #231AA7 #2E23DC

Accessibility & contrast

On white

15.35
#181272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181272
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181272#FFFFFF#000000##FFFFFF
##1812721.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002975
Deuteranopia (green-blind)
#002070
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181272;
/* rgb */ color: rgb(24, 18, 114);
/* oklch */ color: oklch(28.0% 0.153 273.0);
Tailwind
colors: {
  custom: {
    50: '#67539c',
    500: '#181272',
    950: '#000000',
  },
}
SCSS
$custom: #181272;
$custom-light: #67539c;
$custom-dark: #000000;
JSON
{
  "hex": "#181272",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 243.75,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28003,
    "c": 0.15328,
    "h": 273
  },
  "luminance": 0.01842
}

Semantic roles & 50–950 ramp

primary
#181272
secondary
#A2A937
accent
#EF38E4
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #181272

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

Preview Lab → · Contrast checker → · Palette generator →

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