#18125D#18125D

#18125D is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.5% C 0.126 H 276.2°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#18125D
RGBrgb(24, 18, 93)
HSLhsl(245, 68%, 22%)
HSVhsv(245, 81%, 36%)
CMYKcmyk(74.2%, 80.6%, 0%, 63.5%)
CIE-LABlab(12.07, 29.05, -43.30)
CIE-LCHlch(12.07, 52.14, 303.86°)
OKLaboklab(25.46% 0.0136 -0.1251)
OKLCHoklch(25.46% 0.126 276.2)
XYZxyz(2.5681, 1.4169, 10.4919)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18125D #575D12
analogous
#12325D #18125D #3E125D
triadic
#18125D #5D1812 #125D18
tetradic
#18125D #5D1232 #575D12 #125D3E
square
#18125D #5D1232 #575D12 #125D3E
split-complementary
#18125D #5D3E12 #325D12
monochromatic
#07051A #0B082A #18125D #251C90 #3226C4

Accessibility & contrast

On white

16.36
#18125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18125D
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18125D#FFFFFF#000000##FFFFFF
##18125D1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235F
Deuteranopia (green-blind)
#001C5C
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #18125d;
/* rgb */ color: rgb(24, 18, 93);
/* oklch */ color: oklch(25.5% 0.126 276.2);
Tailwind
colors: {
  custom: {
    50: '#61518c',
    500: '#18125d',
    950: '#000000',
  },
}
SCSS
$custom: #18125d;
$custom-light: #61518c;
$custom-dark: #000000;
JSON
{
  "hex": "#18125d",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 244.8,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25458,
    "c": 0.12587,
    "h": 276.2
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#18125D
secondary
#8E9535
accent
#EA3DDD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18125D

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

Preview Lab → · Contrast checker → · Palette generator →

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