#181B66#181B66

#181B66 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.128 H 272.8°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#181B66
RGBrgb(24, 27, 102)
HSLhsl(238, 62%, 25%)
HSVhsv(238, 76%, 40%)
CMYKcmyk(76.5%, 73.5%, 0%, 60%)
CIE-LABlab(15.15, 26.60, -44.20)
CIE-LCHlch(15.15, 51.58, 301.04°)
OKLaboklab(27.96% 0.0062 -0.1278)
OKLCHoklch(27.96% 0.128 272.8)
XYZxyz(3.1661, 1.9370, 12.7748)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B66 #666318
analogous
#184266 #181B66 #3C1866
triadic
#181B66 #66181B #1B6618
tetradic
#181B66 #661842 #666318 #18663C
square
#181B66 #661842 #666318 #18663C
split-complementary
#181B66 #663C18 #426618
monochromatic
#060719 #0C0E34 #181B66 #242898 #2F35C9

Accessibility & contrast

On white

15.14
#181B66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#181B66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B66
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B66#FFFFFF#000000##FFFFFF
##181B661.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002265
Tritanopia (blue-blind)
#00303E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181b66;
/* rgb */ color: rgb(24, 27, 102);
/* oklch */ color: oklch(28.0% 0.128 272.8);
Tailwind
colors: {
  custom: {
    50: '#635892',
    500: '#181b66',
    950: '#000000',
  },
}
SCSS
$custom: #181b66;
$custom-light: #635892;
$custom-dark: #000000;
JSON
{
  "hex": "#181b66",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 102
  },
  "hsl": {
    "h": 237.692,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.2796,
    "c": 0.12797,
    "h": 272.8
  },
  "luminance": 0.01937
}

Semantic roles & 50–950 ramp

primary
#181B66
secondary
#9C983E
accent
#DF43E5
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181B66

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

Preview Lab → · Contrast checker → · Palette generator →

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