#181270#181270

#181270 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.151 H 273.3°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#181270
RGBrgb(24, 18, 112)
HSLhsl(244, 72%, 25%)
HSVhsv(244, 84%, 44%)
CMYKcmyk(78.6%, 83.9%, 0%, 56.1%)
CIE-LABlab(14.38, 35.66, -52.02)
CIE-LCHlch(14.38, 63.07, 304.43°)
OKLaboklab(27.76% 0.0087 -0.1505)
OKLCHoklch(27.76% 0.151 273.3)
XYZxyz(3.5166, 1.7963, 15.4875)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181270 #6A7012
analogous
#123B70 #181270 #471270
triadic
#181270 #701812 #127018
tetradic
#181270 #70123B #6A7012 #127047
square
#181270 #70123B #6A7012 #127047
split-complementary
#181270 #704712 #3B7012
monochromatic
#06041A #0D0A3B #181270 #231AA5 #2F23D9

Accessibility & contrast

On white

15.45
#181270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181270
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181270#FFFFFF#000000##FFFFFF
##1812701.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002973
Deuteranopia (green-blind)
#00206E
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181270;
/* rgb */ color: rgb(24, 18, 112);
/* oklch */ color: oklch(27.8% 0.151 273.3);
Tailwind
colors: {
  custom: {
    50: '#66539a',
    500: '#181270',
    950: '#000000',
  },
}
SCSS
$custom: #181270;
$custom-light: #66539a;
$custom-dark: #000000;
JSON
{
  "hex": "#181270",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 243.83,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.27755,
    "c": 0.15075,
    "h": 273.3
  },
  "luminance": 0.01797
}

Semantic roles & 50–950 ramp

primary
#181270
secondary
#A0A737
accent
#EF39E3
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #181270

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

Preview Lab → · Contrast checker → · Palette generator →

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