#181A66#181A66

#181A66 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.8% C 0.129 H 273.0°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#181A66
RGBrgb(24, 26, 102)
HSLhsl(238, 62%, 25%)
HSVhsv(238, 76%, 40%)
CMYKcmyk(76.5%, 74.5%, 0%, 60%)
CIE-LABlab(14.91, 27.26, -44.60)
CIE-LCHlch(14.91, 52.27, 301.44°)
OKLaboklab(27.79% 0.0069 -0.129)
OKLCHoklch(27.79% 0.129 273)
XYZxyz(3.1436, 1.8920, 12.7673)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A66 #666418
analogous
#184166 #181A66 #3D1866
triadic
#181A66 #66181A #1A6618
tetradic
#181A66 #661841 #666418 #18663D
square
#181A66 #661841 #666418 #18663D
split-complementary
#181A66 #663D18 #416618
monochromatic
#060619 #0C0D34 #181A66 #242798 #2F33C9

Accessibility & contrast

On white

15.24
#181A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#181A66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A66
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A66#FFFFFF#000000##FFFFFF
##181A661.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002265
Tritanopia (blue-blind)
#002F3E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181a66;
/* rgb */ color: rgb(24, 26, 102);
/* oklch */ color: oklch(27.8% 0.129 273.0);
Tailwind
colors: {
  custom: {
    50: '#635793',
    500: '#181a66',
    950: '#000000',
  },
}
SCSS
$custom: #181a66;
$custom-light: #635793;
$custom-dark: #000000;
JSON
{
  "hex": "#181a66",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 102
  },
  "hsl": {
    "h": 238.462,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27785,
    "c": 0.12917,
    "h": 273
  },
  "luminance": 0.01892
}

Semantic roles & 50–950 ramp

primary
#181A66
secondary
#9C9A3E
accent
#E143E5
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181A66

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

Preview Lab → · Contrast checker → · Palette generator →

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