#181870#181870

#181870 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.145 H 272.4°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#181870
RGBrgb(24, 24, 112)
HSLhsl(240, 65%, 27%)
HSVhsv(240, 79%, 44%)
CMYKcmyk(78.6%, 78.6%, 0%, 56.1%)
CIE-LABlab(15.58, 32.23, -50.04)
CIE-LCHlch(15.58, 59.52, 302.79°)
OKLaboklab(28.6% 0.0061 -0.1448)
OKLCHoklch(28.6% 0.145 272.4)
XYZxyz(3.6270, 2.0169, 15.5242)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181870 #707018
analogous
#184470 #181870 #441870
triadic
#181870 #701818 #187018
tetradic
#181870 #701844 #707018 #187044
square
#181870 #701844 #707018 #187044
split-complementary
#181870 #704418 #447018
monochromatic
#050519 #0D0D3E #181870 #2323A2 #3030D3

Accessibility & contrast

On white

14.96
#181870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#181870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181870
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181870#FFFFFF#000000##FFFFFF
##1818701.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00226E
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181870;
/* rgb */ color: rgb(24, 24, 112);
/* oklch */ color: oklch(28.6% 0.145 272.4);
Tailwind
colors: {
  custom: {
    50: '#66569a',
    500: '#181870',
    950: '#000000',
  },
}
SCSS
$custom: #181870;
$custom-light: #66569a;
$custom-dark: #000000;
JSON
{
  "hex": "#181870",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 240,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.28595,
    "c": 0.14496,
    "h": 272.4
  },
  "luminance": 0.02017
}

Semantic roles & 50–950 ramp

primary
#181870
secondary
#A5A53E
accent
#E840E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181870

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

Preview Lab → · Contrast checker → · Palette generator →

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