#181B7E#181B7E

#181B7E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.160 H 270.8°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#181B7E
RGBrgb(24, 27, 126)
HSLhsl(238, 68%, 29%)
HSVhsv(238, 81%, 49%)
CMYKcmyk(81%, 78.6%, 0%, 50.6%)
CIE-LABlab(17.85, 35.44, -55.29)
CIE-LCHlch(17.85, 65.67, 302.66°)
OKLaboklab(30.68% 0.0022 -0.1601)
OKLCHoklch(30.68% 0.16 270.8)
XYZxyz(4.5332, 2.4839, 19.9751)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B7E #7E7B18
analogous
#184E7E #181B7E #48187E
triadic
#181B7E #7E181B #1B7E18
tetradic
#181B7E #7E184E #7E7B18 #187E48
square
#181B7E #7E184E #7E7B18 #187E48
split-complementary
#181B7E #7E4818 #4E7E18
monochromatic
#05061A #0E104B #181B7E #2226B1 #373CD9

Accessibility & contrast

On white

14.03
#181B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#181B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B7E
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B7E#FFFFFF#000000##FFFFFF
##181B7E1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181b7e;
/* rgb */ color: rgb(24, 27, 126);
/* oklch */ color: oklch(30.7% 0.160 270.8);
Tailwind
colors: {
  custom: {
    50: '#6959a5',
    500: '#181b7e',
    950: '#000000',
  },
}
SCSS
$custom: #181b7e;
$custom-light: #6959a5;
$custom-dark: #000000;
JSON
{
  "hex": "#181b7e",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 238.235,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30683,
    "c": 0.16011,
    "h": 270.8
  },
  "luminance": 0.02484
}

Semantic roles & 50–950 ramp

primary
#181B7E
secondary
#B2AF3F
accent
#E63DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #181B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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