#181F45#181F45

#181F45 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.071 H 272.5°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#181F45
RGBrgb(24, 31, 69)
HSLhsl(231, 48%, 18%)
HSVhsv(231, 65%, 27%)
CMYKcmyk(65.2%, 55.1%, 0%, 72.9%)
CIE-LABlab(13.25, 10.57, -24.97)
CIE-LCHlch(13.25, 27.12, 292.93°)
OKLaboklab(25.62% 0.0032 -0.0714)
OKLCHoklch(25.62% 0.071 272.5)
XYZxyz(1.9405, 1.6037, 5.8364)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F45 #453E18
analogous
#183545 #181F45 #271845
triadic
#181F45 #45181F #1F4518
tetradic
#181F45 #451835 #453E18 #184527
square
#181F45 #451835 #453E18 #184527
split-complementary
#181F45 #452718 #354518
monochromatic
#080A17 #080B18 #181F45 #283372 #3848A0

Accessibility & contrast

On white

15.90
#181F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#181F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F45
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F45#FFFFFF#000000##FFFFFF
##181F451.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2446
Deuteranopia (green-blind)
#052044
Tritanopia (blue-blind)
#00282E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181f45;
/* rgb */ color: rgb(24, 31, 69);
/* oklch */ color: oklch(25.6% 0.071 272.5);
Tailwind
colors: {
  custom: {
    50: '#5a5a79',
    500: '#181f45',
    950: '#000000',
  },
}
SCSS
$custom: #181f45;
$custom-light: #5a5a79;
$custom-dark: #000000;
JSON
{
  "hex": "#181f45",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 69
  },
  "hsl": {
    "h": 230.667,
    "s": 48.387,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25616,
    "c": 0.07143,
    "h": 272.5
  },
  "luminance": 0.01604
}

Semantic roles & 50–950 ramp

primary
#181F45
secondary
#7C723D
accent
#C350D8
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #181F45

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

Preview Lab → · Contrast checker → · Palette generator →

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