#181B7D#181B7D

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

Color values

HEX#181B7D
RGBrgb(24, 27, 125)
HSLhsl(238, 68%, 29%)
HSVhsv(238, 81%, 49%)
CMYKcmyk(80.8%, 78.4%, 0%, 51%)
CIE-LABlab(17.73, 35.08, -54.84)
CIE-LCHlch(17.73, 65.11, 302.61°)
OKLaboklab(30.57% 0.0024 -0.1588)
OKLCHoklch(30.57% 0.159 270.8)
XYZxyz(4.4690, 2.4582, 19.6370)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B7D #7D7A18
analogous
#184E7D #181B7D #48187D
triadic
#181B7D #7D181B #1B7D18
tetradic
#181B7D #7D184E #7D7A18 #187D48
square
#181B7D #7D184E #7D7A18 #187D48
split-complementary
#181B7D #7D4818 #4E7D18
monochromatic
#05061A #0E104A #181B7D #2226B0 #373CD9

Accessibility & contrast

On white

14.08
#181B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#181B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B7D
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B7D#FFFFFF#000000##FFFFFF
##181B7D1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181b7d;
/* rgb */ color: rgb(24, 27, 125);
/* oklch */ color: oklch(30.6% 0.159 270.8);
Tailwind
colors: {
  custom: {
    50: '#6959a4',
    500: '#181b7d',
    950: '#000000',
  },
}
SCSS
$custom: #181b7d;
$custom-light: #6959a4;
$custom-dark: #000000;
JSON
{
  "hex": "#181b7d",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 238.218,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30566,
    "c": 0.15884,
    "h": 270.8
  },
  "luminance": 0.02459
}

Semantic roles & 50–950 ramp

primary
#181B7D
secondary
#B2AE3F
accent
#E63DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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