#181B7C#181B7C

#181B7C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.158 H 270.9°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#181B7C
RGBrgb(24, 27, 124)
HSLhsl(238, 68%, 29%)
HSVhsv(238, 81%, 49%)
CMYKcmyk(80.6%, 78.2%, 0%, 51.4%)
CIE-LABlab(17.61, 34.73, -54.40)
CIE-LCHlch(17.61, 64.54, 302.55°)
OKLaboklab(30.45% 0.0025 -0.1575)
OKLCHoklch(30.45% 0.158 270.9)
XYZxyz(4.4055, 2.4328, 19.3023)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B7C #7C7918
analogous
#184D7C #181B7C #47187C
triadic
#181B7C #7C181B #1B7C18
tetradic
#181B7C #7C184D #7C7918 #187C47
square
#181B7C #7C184D #7C7918 #187C47
split-complementary
#181B7C #7C4718 #4D7C18
monochromatic
#05061A #0E1049 #181B7C #2226AF #363BD8

Accessibility & contrast

On white

14.13
#181B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B7C
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B7C#FFFFFF#000000##FFFFFF
##181B7C1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181b7c;
/* rgb */ color: rgb(24, 27, 124);
/* oklch */ color: oklch(30.4% 0.158 270.9);
Tailwind
colors: {
  custom: {
    50: '#6959a3',
    500: '#181b7c',
    950: '#000000',
  },
}
SCSS
$custom: #181b7c;
$custom-light: #6959a3;
$custom-dark: #000000;
JSON
{
  "hex": "#181b7c",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 238.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30449,
    "c": 0.15755,
    "h": 270.9
  },
  "luminance": 0.02433
}

Semantic roles & 50–950 ramp

primary
#181B7C
secondary
#B1AD3F
accent
#E53DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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