#18125B#18125B

#18125B is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.2% C 0.123 H 276.5°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#18125B
RGBrgb(24, 18, 91)
HSLhsl(245, 67%, 21%)
HSVhsv(245, 80%, 36%)
CMYKcmyk(73.6%, 80.2%, 0%, 64.3%)
CIE-LABlab(11.84, 28.33, -42.34)
CIE-LCHlch(11.84, 50.94, 303.79°)
OKLaboklab(25.22% 0.014 -0.1223)
OKLCHoklch(25.22% 0.123 276.5)
XYZxyz(2.4807, 1.3819, 10.0315)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18125B #555B12
analogous
#12315B #18125B #3D125B
triadic
#18125B #5B1812 #125B18
tetradic
#18125B #5B1231 #555B12 #125B3D
square
#18125B #5B1231 #555B12 #125B3D
split-complementary
#18125B #5B3D12 #315B12
monochromatic
#07051A #0B0828 #18125B #251C8E #3326C1

Accessibility & contrast

On white

16.45
#18125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#18125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18125B
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18125B#FFFFFF#000000##FFFFFF
##18125B1.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225D
Deuteranopia (green-blind)
#001C5A
Tritanopia (blue-blind)
#002735
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #18125b;
/* rgb */ color: rgb(24, 18, 91);
/* oklch */ color: oklch(25.2% 0.123 276.5);
Tailwind
colors: {
  custom: {
    50: '#61518a',
    500: '#18125b',
    950: '#000000',
  },
}
SCSS
$custom: #18125b;
$custom-light: #61518a;
$custom-dark: #000000;
JSON
{
  "hex": "#18125b",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 244.932,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25224,
    "c": 0.12315,
    "h": 276.5
  },
  "luminance": 0.01382
}

Semantic roles & 50–950 ramp

primary
#18125B
secondary
#8C9335
accent
#EA3EDC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #18125B

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

Preview Lab → · Contrast checker → · Palette generator →

#18125B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva