#18145F#18145F

#18145F is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.0% C 0.126 H 275.4°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#18145F
RGBrgb(24, 20, 95)
HSLhsl(243, 65%, 23%)
HSVhsv(243, 79%, 37%)
CMYKcmyk(74.7%, 78.9%, 0%, 62.7%)
CIE-LABlab(12.74, 28.54, -43.53)
CIE-LCHlch(12.74, 52.05, 303.24°)
OKLaboklab(26% 0.0119 -0.1258)
OKLCHoklch(26% 0.126 275.4)
XYZxyz(2.6917, 1.5205, 10.9759)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18145F #5B5F14
analogous
#14355F #18145F #3D145F
triadic
#18145F #5F1814 #145F18
tetradic
#18145F #5F1435 #5B5F14 #145F3D
square
#18145F #5F1435 #5B5F14 #145F3D
split-complementary
#18145F #5F3D14 #355F14
monochromatic
#060519 #0B092C #18145F #251F92 #3229C4

Accessibility & contrast

On white

16.10
#18145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#18145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18145F
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18145F#FFFFFF#000000##FFFFFF
##18145F1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #18145f;
/* rgb */ color: rgb(24, 20, 95);
/* oklch */ color: oklch(26.0% 0.126 275.4);
Tailwind
colors: {
  custom: {
    50: '#61538d',
    500: '#18145f',
    950: '#000000',
  },
}
SCSS
$custom: #18145f;
$custom-light: #61538d;
$custom-dark: #000000;
JSON
{
  "hex": "#18145f",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 243.2,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26,
    "c": 0.12641,
    "h": 275.4
  },
  "luminance": 0.01521
}

Semantic roles & 50–950 ramp

primary
#18145F
secondary
#929738
accent
#E840DF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18145F

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

Preview Lab → · Contrast checker → · Palette generator →

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