#18125C#18125C

#18125C is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.3% C 0.125 H 276.4°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#18125C
RGBrgb(24, 18, 92)
HSLhsl(245, 67%, 22%)
HSVhsv(245, 80%, 36%)
CMYKcmyk(73.9%, 80.4%, 0%, 63.9%)
CIE-LABlab(11.95, 28.69, -42.82)
CIE-LCHlch(11.95, 51.54, 303.82°)
OKLaboklab(25.34% 0.0138 -0.1237)
OKLCHoklch(25.34% 0.125 276.4)
XYZxyz(2.5241, 1.3993, 10.2602)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18125C #565C12
analogous
#12315C #18125C #3D125C
triadic
#18125C #5C1812 #125C18
tetradic
#18125C #5C1231 #565C12 #125C3D
square
#18125C #5C1231 #565C12 #125C3D
split-complementary
#18125C #5C3D12 #315C12
monochromatic
#07051A #0B0829 #18125C #251C8F #3326C2

Accessibility & contrast

On white

16.41
#18125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18125C
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18125C#FFFFFF#000000##FFFFFF
##18125C1.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001C5B
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #18125c;
/* rgb */ color: rgb(24, 18, 92);
/* oklch */ color: oklch(25.3% 0.125 276.4);
Tailwind
colors: {
  custom: {
    50: '#61518b',
    500: '#18125c',
    950: '#000000',
  },
}
SCSS
$custom: #18125c;
$custom-light: #61518b;
$custom-dark: #000000;
JSON
{
  "hex": "#18125c",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 244.865,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25341,
    "c": 0.12452,
    "h": 276.4
  },
  "luminance": 0.014
}

Semantic roles & 50–950 ramp

primary
#18125C
secondary
#8D9435
accent
#EA3EDC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18125C

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

Preview Lab → · Contrast checker → · Palette generator →

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