#181770#181770

#181770 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.146 H 272.6°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#181770
RGBrgb(24, 23, 112)
HSLhsl(241, 66%, 26%)
HSVhsv(241, 79%, 44%)
CMYKcmyk(78.6%, 79.5%, 0%, 56.1%)
CIE-LABlab(15.36, 32.83, -50.39)
CIE-LCHlch(15.36, 60.15, 303.09°)
OKLaboklab(28.44% 0.0066 -0.1458)
OKLCHoklch(28.44% 0.146 272.6)
XYZxyz(3.6067, 1.9765, 15.5175)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181770 #6F7017
analogous
#174370 #181770 #451770
triadic
#181770 #701817 #177018
tetradic
#181770 #701743 #6F7017 #177045
square
#181770 #701743 #6F7017 #177045
split-complementary
#181770 #704517 #437017
monochromatic
#050519 #0D0D3D #181770 #2321A3 #2F2DD4

Accessibility & contrast

On white

15.05
#181770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181770
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181770#FFFFFF#000000##FFFFFF
##1817701.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181770;
/* rgb */ color: rgb(24, 23, 112);
/* oklch */ color: oklch(28.4% 0.146 272.6);
Tailwind
colors: {
  custom: {
    50: '#66559a',
    500: '#181770',
    950: '#000000',
  },
}
SCSS
$custom: #181770;
$custom-light: #66559a;
$custom-dark: #000000;
JSON
{
  "hex": "#181770",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 112
  },
  "hsl": {
    "h": 240.674,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28444,
    "c": 0.146,
    "h": 272.6
  },
  "luminance": 0.01977
}

Semantic roles & 50–950 ramp

primary
#181770
secondary
#A5A63D
accent
#E93FE7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181770

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

Preview Lab → · Contrast checker → · Palette generator →

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