#18125A#18125A

#18125A is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.1% C 0.122 H 276.7°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#18125A
RGBrgb(24, 18, 90)
HSLhsl(245, 67%, 21%)
HSVhsv(245, 80%, 35%)
CMYKcmyk(73.3%, 80%, 0%, 64.7%)
CIE-LABlab(11.72, 27.97, -41.85)
CIE-LCHlch(11.72, 50.34, 303.75°)
OKLaboklab(25.11% 0.0143 -0.1209)
OKLCHoklch(25.11% 0.122 276.7)
XYZxyz(2.4379, 1.3648, 9.8058)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18125A #545A12
analogous
#12305A #18125A #3C125A
triadic
#18125A #5A1812 #125A18
tetradic
#18125A #5A1230 #545A12 #125A3C
square
#18125A #5A1230 #545A12 #125A3C
split-complementary
#18125A #5A3C12 #305A12
monochromatic
#07051A #0A0827 #18125A #261C8D #3326C0

Accessibility & contrast

On white

16.50
#18125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#18125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18125A
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18125A#FFFFFF#000000##FFFFFF
##18125A1.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18125a;
/* rgb */ color: rgb(24, 18, 90);
/* oklch */ color: oklch(25.1% 0.122 276.7);
Tailwind
colors: {
  custom: {
    50: '#60518a',
    500: '#18125a',
    950: '#000000',
  },
}
SCSS
$custom: #18125a;
$custom-light: #60518a;
$custom-dark: #000000;
JSON
{
  "hex": "#18125a",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 245,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25108,
    "c": 0.12178,
    "h": 276.7
  },
  "luminance": 0.01365
}

Semantic roles & 50–950 ramp

primary
#18125A
secondary
#8B9335
accent
#EA3EDB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #18125A

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

Preview Lab → · Contrast checker → · Palette generator →

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