#18183F#18183F

#18183F is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.5% C 0.073 H 279.2°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#18183F
RGBrgb(24, 24, 63)
HSLhsl(240, 45%, 17%)
HSVhsv(240, 62%, 25%)
CMYKcmyk(61.9%, 61.9%, 0%, 75.3%)
CIE-LABlab(10.60, 13.48, -25.03)
CIE-LCHlch(10.60, 28.43, 298.31°)
OKLaboklab(23.47% 0.0117 -0.0716)
OKLCHoklch(23.47% 0.073 279.2)
XYZxyz(1.6002, 1.2062, 4.8502)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18183F #3F3F18
analogous
#182C3F #18183F #2C183F
triadic
#18183F #3F1818 #183F18
tetradic
#18183F #3F182C #3F3F18 #183F2C
square
#18183F #3F182C #3F3F18 #183F2C
split-complementary
#18183F #3F2C18 #2C3F18
monochromatic
#080816 #080816 #18183F #29296B #3A3A98

Accessibility & contrast

On white

16.92
#18183F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#18183F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18183F
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18183F#FFFFFF#000000##FFFFFF
##18183F1.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031E40
Deuteranopia (green-blind)
#001B3E
Tritanopia (blue-blind)
#062128
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #18183f;
/* rgb */ color: rgb(24, 24, 63);
/* oklch */ color: oklch(23.5% 0.073 279.2);
Tailwind
colors: {
  custom: {
    50: '#595474',
    500: '#18183f',
    950: '#000000',
  },
}
SCSS
$custom: #18183f;
$custom-light: #595474;
$custom-dark: #000000;
JSON
{
  "hex": "#18183f",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 63
  },
  "hsl": {
    "h": 240,
    "s": 44.828,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23472,
    "c": 0.07254,
    "h": 279.2
  },
  "luminance": 0.01206
}

Semantic roles & 50–950 ramp

primary
#18183F
secondary
#75753D
accent
#D553D5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #18183F

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

Preview Lab → · Contrast checker → · Palette generator →

#18183F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva