#181C6B#181C6B

#181C6B is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.7% C 0.134 H 272.1°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#181C6B
RGBrgb(24, 28, 107)
HSLhsl(237, 63%, 26%)
HSVhsv(237, 78%, 42%)
CMYKcmyk(77.6%, 73.8%, 0%, 58%)
CIE-LABlab(15.93, 27.83, -46.20)
CIE-LCHlch(15.93, 53.93, 301.07°)
OKLaboklab(28.68% 0.0049 -0.1337)
OKLCHoklch(28.68% 0.134 272.1)
XYZxyz(3.4449, 2.0859, 14.1281)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C6B #6B6718
analogous
#18456B #181C6B #3D186B
triadic
#181C6B #6B181C #1C6B18
tetradic
#181C6B #6B1845 #6B6718 #186B3D
square
#181C6B #6B1845 #6B6718 #186B3D
split-complementary
#181C6B #6B3D18 #456B18
monochromatic
#060719 #0D0F39 #181C6B #23299D #2E36CF

Accessibility & contrast

On white

14.82
#181C6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181C6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C6B
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C6B#FFFFFF#000000##FFFFFF
##181C6B1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181c6b;
/* rgb */ color: rgb(24, 28, 107);
/* oklch */ color: oklch(28.7% 0.134 272.1);
Tailwind
colors: {
  custom: {
    50: '#645896',
    500: '#181c6b',
    950: '#000000',
  },
}
SCSS
$custom: #181c6b;
$custom-light: #645896;
$custom-dark: #000000;
JSON
{
  "hex": "#181c6b",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 107
  },
  "hsl": {
    "h": 237.108,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28682,
    "c": 0.13375,
    "h": 272.1
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#181C6B
secondary
#A19C3E
accent
#DE41E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181C6B

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

Preview Lab → · Contrast checker → · Palette generator →

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