#18195F#18195F

#18195F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.8% C 0.121 H 274.1°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#18195F
RGBrgb(24, 25, 95)
HSLhsl(239, 60%, 23%)
HSVhsv(239, 75%, 37%)
CMYKcmyk(74.7%, 73.7%, 0%, 62.7%)
CIE-LABlab(13.92, 25.27, -41.59)
CIE-LCHlch(13.92, 48.67, 301.28°)
OKLaboklab(26.84% 0.0086 -0.1202)
OKLCHoklch(26.84% 0.121 274.1)
XYZxyz(2.7892, 1.7154, 11.0084)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18195F #5F5E18
analogous
#183C5F #18195F #3A185F
triadic
#18195F #5F1819 #195F18
tetradic
#18195F #5F183C #5F5E18 #185F3A
square
#18195F #5F183C #5F5E18 #185F3A
split-complementary
#18195F #5F3A18 #3C5F18
monochromatic
#060618 #0C0C2E #18195F #242690 #3133C1

Accessibility & contrast

On white

15.63
#18195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#18195F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18195F
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18195F#FFFFFF#000000##FFFFFF
##18195F1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002C39
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #18195f;
/* rgb */ color: rgb(24, 25, 95);
/* oklch */ color: oklch(26.8% 0.121 274.1);
Tailwind
colors: {
  custom: {
    50: '#61568d',
    500: '#18195f',
    950: '#000000',
  },
}
SCSS
$custom: #18195f;
$custom-light: #61568d;
$custom-dark: #000000;
JSON
{
  "hex": "#18195f",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 239.155,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.26843,
    "c": 0.12051,
    "h": 274.1
  },
  "luminance": 0.01716
}

Semantic roles & 50–950 ramp

primary
#18195F
secondary
#95943D
accent
#E145E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #18195F

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

Preview Lab → · Contrast checker → · Palette generator →

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