#181F43#181F43

#181F43 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.5% C 0.068 H 272.4°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#181F43
RGBrgb(24, 31, 67)
HSLhsl(230, 47%, 18%)
HSVhsv(230, 64%, 26%)
CMYKcmyk(64.2%, 53.7%, 0%, 73.7%)
CIE-LABlab(13.10, 9.76, -23.82)
CIE-LCHlch(13.10, 25.74, 292.29°)
OKLaboklab(25.46% 0.0029 -0.068)
OKLCHoklch(25.46% 0.068 272.4)
XYZxyz(1.8795, 1.5793, 5.5149)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F43 #433C18
analogous
#183443 #181F43 #261843
triadic
#181F43 #43181F #1F4318
tetradic
#181F43 #431834 #433C18 #184326
square
#181F43 #431834 #433C18 #184326
split-complementary
#181F43 #432618 #344318
monochromatic
#080A17 #080A17 #181F43 #283470 #38499D

Accessibility & contrast

On white

15.96
#181F43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F43
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F43#FFFFFF#000000##FFFFFF
##181F431.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2444
Deuteranopia (green-blind)
#082042
Tritanopia (blue-blind)
#01272D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181f43;
/* rgb */ color: rgb(24, 31, 67);
/* oklch */ color: oklch(25.5% 0.068 272.4);
Tailwind
colors: {
  custom: {
    50: '#595a77',
    500: '#181f43',
    950: '#000000',
  },
}
SCSS
$custom: #181f43;
$custom-light: #595a77;
$custom-dark: #000000;
JSON
{
  "hex": "#181f43",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 67
  },
  "hsl": {
    "h": 230.233,
    "s": 47.253,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25455,
    "c": 0.06803,
    "h": 272.4
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

primary
#181F43
secondary
#7A703D
accent
#C151D7
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181F43

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

Preview Lab → · Contrast checker → · Palette generator →

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