#18125E#18125E

#18125E is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.6% C 0.127 H 276.0°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#18125E
RGBrgb(24, 18, 94)
HSLhsl(245, 68%, 22%)
HSVhsv(245, 81%, 37%)
CMYKcmyk(74.5%, 80.9%, 0%, 63.1%)
CIE-LABlab(12.19, 29.40, -43.77)
CIE-LCHlch(12.19, 52.73, 303.89°)
OKLaboklab(25.58% 0.0133 -0.1265)
OKLCHoklch(25.58% 0.127 276)
XYZxyz(2.6127, 1.4347, 10.7267)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18125E #585E12
analogous
#12325E #18125E #3E125E
triadic
#18125E #5E1812 #125E18
tetradic
#18125E #5E1232 #585E12 #125E3E
square
#18125E #5E1232 #585E12 #125E3E
split-complementary
#18125E #5E3E12 #325E12
monochromatic
#07051A #0B082B #18125E #251C91 #3226C5

Accessibility & contrast

On white

16.32
#18125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#18125E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18125E
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18125E#FFFFFF#000000##FFFFFF
##18125E1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002360
Deuteranopia (green-blind)
#001C5D
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #18125e;
/* rgb */ color: rgb(24, 18, 94);
/* oklch */ color: oklch(25.6% 0.127 276.0);
Tailwind
colors: {
  custom: {
    50: '#61518d',
    500: '#18125e',
    950: '#000000',
  },
}
SCSS
$custom: #18125e;
$custom-light: #61518d;
$custom-dark: #000000;
JSON
{
  "hex": "#18125e",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 244.737,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25576,
    "c": 0.12723,
    "h": 276
  },
  "luminance": 0.01435
}

Semantic roles & 50–950 ramp

primary
#18125E
secondary
#8F9635
accent
#EB3DDD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18125E

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

Preview Lab → · Contrast checker → · Palette generator →

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