#181A5E#181A5E

#181A5E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.9% C 0.118 H 273.9°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#181A5E
RGBrgb(24, 26, 94)
HSLhsl(238, 59%, 23%)
HSVhsv(238, 74%, 37%)
CMYKcmyk(74.5%, 72.3%, 0%, 63.1%)
CIE-LABlab(14.06, 24.20, -40.68)
CIE-LCHlch(14.06, 47.34, 300.75°)
OKLaboklab(26.92% 0.008 -0.1175)
OKLCHoklch(26.92% 0.118 273.9)
XYZxyz(2.7658, 1.7409, 10.7778)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A5E #5E5C18
analogous
#183D5E #181A5E #39185E
triadic
#181A5E #5E181A #1A5E18
tetradic
#181A5E #5E183D #5E5C18 #185E39
square
#181A5E #5E183D #5E5C18 #185E39
split-complementary
#181A5E #5E3918 #3D5E18
monochromatic
#060718 #0C0D2D #181A5E #24278F #3135C0

Accessibility & contrast

On white

15.58
#181A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#181A5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A5E
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A5E#FFFFFF#000000##FFFFFF
##181A5E1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002C39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181a5e;
/* rgb */ color: rgb(24, 26, 94);
/* oklch */ color: oklch(26.9% 0.118 273.9);
Tailwind
colors: {
  custom: {
    50: '#60578c',
    500: '#181a5e',
    950: '#000000',
  },
}
SCSS
$custom: #181a5e;
$custom-light: #60578c;
$custom-dark: #000000;
JSON
{
  "hex": "#181a5e",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 238.286,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.26918,
    "c": 0.11782,
    "h": 273.9
  },
  "luminance": 0.01741
}

Semantic roles & 50–950 ramp

primary
#181A5E
secondary
#94923D
accent
#DE45E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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