#181B7F#181B7F

#181B7F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.161 H 270.7°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#181B7F
RGBrgb(24, 27, 127)
HSLhsl(238, 68%, 30%)
HSVhsv(238, 81%, 50%)
CMYKcmyk(81.1%, 78.7%, 0%, 50.2%)
CIE-LABlab(17.96, 35.80, -55.73)
CIE-LCHlch(17.96, 66.23, 302.71°)
OKLaboklab(30.8% 0.002 -0.1614)
OKLCHoklch(30.8% 0.161 270.7)
XYZxyz(4.5981, 2.5098, 20.3167)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B7F #7F7C18
analogous
#184F7F #181B7F #48187F
triadic
#181B7F #7F181B #1B7F18
tetradic
#181B7F #7F184F #7F7C18 #187F48
square
#181B7F #7F184F #7F7C18 #187F48
split-complementary
#181B7F #7F4818 #4F7F18
monochromatic
#05051A #0E104C #181B7F #2226B2 #383DD9

Accessibility & contrast

On white

13.98
#181B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B7F
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B7F#FFFFFF#000000##FFFFFF
##181B7F1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181b7f;
/* rgb */ color: rgb(24, 27, 127);
/* oklch */ color: oklch(30.8% 0.161 270.7);
Tailwind
colors: {
  custom: {
    50: '#6959a5',
    500: '#181b7f',
    950: '#000000',
  },
}
SCSS
$custom: #181b7f;
$custom-light: #6959a5;
$custom-dark: #000000;
JSON
{
  "hex": "#181b7f",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 238.252,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30801,
    "c": 0.1614,
    "h": 270.7
  },
  "luminance": 0.0251
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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