#181A3F#181A3F

#181A3F is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.9% C 0.069 H 277.5°. Best body text is #FFFFFF at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#181A3F
RGBrgb(24, 26, 63)
HSLhsl(237, 45%, 17%)
HSVhsv(237, 62%, 25%)
CMYKcmyk(61.9%, 58.7%, 0%, 75.3%)
CIE-LABlab(11.22, 11.96, -24.04)
CIE-LCHlch(11.22, 26.85, 296.46°)
OKLaboklab(23.93% 0.009 -0.0687)
OKLCHoklch(23.93% 0.069 277.5)
XYZxyz(1.6430, 1.2918, 4.8644)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A3F #3F3D18
analogous
#182E3F #181A3F #2A183F
triadic
#181A3F #3F181A #1A3F18
tetradic
#181A3F #3F182E #3F3D18 #183F2A
square
#181A3F #3F182E #3F3D18 #183F2A
split-complementary
#181A3F #3F2A18 #2E3F18
monochromatic
#080916 #080916 #181A3F #292C6B #3A3F98

Accessibility & contrast

On white

16.69
#181A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#181A3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A3F
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A3F#FFFFFF#000000##FFFFFF
##181A3F1.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072040
Deuteranopia (green-blind)
#031C3E
Tritanopia (blue-blind)
#062229
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #181a3f;
/* rgb */ color: rgb(24, 26, 63);
/* oklch */ color: oklch(23.9% 0.069 277.5);
Tailwind
colors: {
  custom: {
    50: '#595674',
    500: '#181a3f',
    950: '#000000',
  },
}
SCSS
$custom: #181a3f;
$custom-light: #595674;
$custom-dark: #000000;
JSON
{
  "hex": "#181a3f",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 63
  },
  "hsl": {
    "h": 236.923,
    "s": 44.828,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23932,
    "c": 0.06926,
    "h": 277.5
  },
  "luminance": 0.01292
}

Semantic roles & 50–950 ramp

primary
#181A3F
secondary
#75733D
accent
#CE53D5
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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