#181B70#181B70

#181B70 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.142 H 271.9°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#181B70
RGBrgb(24, 27, 112)
HSLhsl(238, 65%, 27%)
HSVhsv(238, 79%, 44%)
CMYKcmyk(78.6%, 75.9%, 0%, 56.1%)
CIE-LABlab(16.24, 30.36, -48.94)
CIE-LCHlch(16.24, 57.59, 301.81°)
OKLaboklab(29.07% 0.0047 -0.1416)
OKLCHoklch(29.07% 0.142 271.9)
XYZxyz(3.6923, 2.1475, 15.5460)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B70 #706D18
analogous
#184770 #181B70 #411870
triadic
#181B70 #70181B #1B7018
tetradic
#181B70 #701847 #706D18 #187041
square
#181B70 #701847 #706D18 #187041
split-complementary
#181B70 #704118 #477018
monochromatic
#050619 #0D0F3E #181B70 #2327A2 #3035D3

Accessibility & contrast

On white

14.69
#181B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#181B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B70
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B70#FFFFFF#000000##FFFFFF
##181B701.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181b70;
/* rgb */ color: rgb(24, 27, 112);
/* oklch */ color: oklch(29.1% 0.142 271.9);
Tailwind
colors: {
  custom: {
    50: '#65589a',
    500: '#181b70',
    950: '#000000',
  },
}
SCSS
$custom: #181b70;
$custom-light: #65589a;
$custom-dark: #000000;
JSON
{
  "hex": "#181b70",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 112
  },
  "hsl": {
    "h": 237.955,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.2907,
    "c": 0.14173,
    "h": 271.9
  },
  "luminance": 0.02148
}

Semantic roles & 50–950 ramp

primary
#181B70
secondary
#A5A23E
accent
#E240E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181B70

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

Preview Lab → · Contrast checker → · Palette generator →

#181B70 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva