#18125F#18125F

#18125F is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.7% C 0.129 H 275.8°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#18125F
RGBrgb(24, 18, 95)
HSLhsl(245, 68%, 22%)
HSVhsv(245, 81%, 37%)
CMYKcmyk(74.7%, 81.1%, 0%, 62.7%)
CIE-LABlab(12.30, 29.76, -44.25)
CIE-LCHlch(12.30, 53.32, 303.93°)
OKLaboklab(25.69% 0.0131 -0.1279)
OKLCHoklch(25.69% 0.129 275.8)
XYZxyz(2.6579, 1.4528, 10.9646)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18125F #595F12
analogous
#12335F #18125F #3F125F
triadic
#18125F #5F1812 #125F18
tetradic
#18125F #5F1233 #595F12 #125F3F
square
#18125F #5F1233 #595F12 #125F3F
split-complementary
#18125F #5F3F12 #335F12
monochromatic
#06051A #0B082C #18125F #251C92 #3225C6

Accessibility & contrast

On white

16.27
#18125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18125F
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18125F#FFFFFF#000000##FFFFFF
##18125F1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002361
Deuteranopia (green-blind)
#001D5E
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #18125f;
/* rgb */ color: rgb(24, 18, 95);
/* oklch */ color: oklch(25.7% 0.129 275.8);
Tailwind
colors: {
  custom: {
    50: '#62518d',
    500: '#18125f',
    950: '#000000',
  },
}
SCSS
$custom: #18125f;
$custom-light: #62518d;
$custom-dark: #000000;
JSON
{
  "hex": "#18125f",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 244.675,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.25694,
    "c": 0.12858,
    "h": 275.8
  },
  "luminance": 0.01453
}

Semantic roles & 50–950 ramp

primary
#18125F
secondary
#909736
accent
#EB3DDD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18125F

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

Preview Lab → · Contrast checker → · Palette generator →

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