#18123D#18123D

#18123D is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.0% C 0.079 H 284.2°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#18123D
RGBrgb(24, 18, 61)
HSLhsl(248, 54%, 15%)
HSVhsv(248, 70%, 24%)
CMYKcmyk(60.7%, 70.5%, 0%, 76.1%)
CIE-LABlab(8.68, 17.18, -26.71)
CIE-LCHlch(8.68, 31.76, 302.75°)
OKLaboklab(22% 0.0194 -0.0766)
OKLCHoklch(22% 0.079 284.2)
XYZxyz(1.4350, 0.9636, 4.5244)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18123D #373D12
analogous
#12213D #18123D #2D123D
triadic
#18123D #3D1812 #123D18
tetradic
#18123D #3D1221 #373D12 #123D2D
square
#18123D #3D1221 #373D12 #123D2D
split-complementary
#18123D #3D2D12 #213D12
monochromatic
#090718 #090718 #18123D #2B206C #3D2E9C

Accessibility & contrast

On white

17.61
#18123D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#18123D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18123D
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18123D#FFFFFF#000000##FFFFFF
##18123D1.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3E
Deuteranopia (green-blind)
#00173C
Tritanopia (blue-blind)
#091C25
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #18123d;
/* rgb */ color: rgb(24, 18, 61);
/* oklch */ color: oklch(22.0% 0.079 284.2);
Tailwind
colors: {
  custom: {
    50: '#595073',
    500: '#18123d',
    950: '#000000',
  },
}
SCSS
$custom: #18123d;
$custom-light: #595073;
$custom-dark: #000000;
JSON
{
  "hex": "#18123d",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 61
  },
  "hsl": {
    "h": 248.372,
    "s": 54.43,
    "l": 15.49
  },
  "oklch": {
    "l": 0.21998,
    "c": 0.07901,
    "h": 284.2
  },
  "luminance": 0.00964
}

Semantic roles & 50–950 ramp

primary
#18123D
secondary
#6D7635
accent
#DE4AC9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #18123D

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

Preview Lab → · Contrast checker → · Palette generator →

#18123D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva