#181B7A#181B7A

#181B7A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.155 H 271.1°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#181B7A
RGBrgb(24, 27, 122)
HSLhsl(238, 67%, 29%)
HSVhsv(238, 80%, 48%)
CMYKcmyk(80.3%, 77.9%, 0%, 52.2%)
CIE-LABlab(17.38, 34.01, -53.51)
CIE-LCHlch(17.38, 63.40, 302.44°)
OKLaboklab(30.22% 0.0029 -0.1549)
OKLCHoklch(30.22% 0.155 271.1)
XYZxyz(4.2803, 2.3827, 18.6429)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B7A #7A7718
analogous
#184C7A #181B7A #46187A
triadic
#181B7A #7A181B #1B7A18
tetradic
#181B7A #7A184C #7A7718 #187A46
square
#181B7A #7A184C #7A7718 #187A46
split-complementary
#181B7A #7A4618 #4C7A18
monochromatic
#05061A #0E1047 #181B7A #2226AD #353AD7

Accessibility & contrast

On white

14.22
#181B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#181B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B7A
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B7A#FFFFFF#000000##FFFFFF
##181B7A1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181b7a;
/* rgb */ color: rgb(24, 27, 122);
/* oklch */ color: oklch(30.2% 0.155 271.1);
Tailwind
colors: {
  custom: {
    50: '#6859a2',
    500: '#181b7a',
    950: '#000000',
  },
}
SCSS
$custom: #181b7a;
$custom-light: #6859a2;
$custom-dark: #000000;
JSON
{
  "hex": "#181b7a",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 238.163,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30216,
    "c": 0.15496,
    "h": 271.1
  },
  "luminance": 0.02383
}

Semantic roles & 50–950 ramp

primary
#181B7A
secondary
#AFAB3F
accent
#E53EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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