#18195E#18195E

#18195E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.119 H 274.2°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#18195E
RGBrgb(24, 25, 94)
HSLhsl(239, 59%, 23%)
HSVhsv(239, 74%, 37%)
CMYKcmyk(74.5%, 73.4%, 0%, 63.1%)
CIE-LABlab(13.81, 24.89, -41.10)
CIE-LCHlch(13.81, 48.05, 301.20°)
OKLaboklab(26.74% 0.0087 -0.1188)
OKLCHoklch(26.74% 0.119 274.2)
XYZxyz(2.7440, 1.6973, 10.7705)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18195E #5E5D18
analogous
#183C5E #18195E #3A185E
triadic
#18195E #5E1819 #195E18
tetradic
#18195E #5E183C #5E5D18 #185E3A
square
#18195E #5E183C #5E5D18 #185E3A
split-complementary
#18195E #5E3A18 #3C5E18
monochromatic
#060618 #0C0C2D #18195E #24268F #3133C0

Accessibility & contrast

On white

15.68
#18195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18195E
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18195E#FFFFFF#000000##FFFFFF
##18195E1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18195e;
/* rgb */ color: rgb(24, 25, 94);
/* oklch */ color: oklch(26.7% 0.119 274.2);
Tailwind
colors: {
  custom: {
    50: '#61568c',
    500: '#18195e',
    950: '#000000',
  },
}
SCSS
$custom: #18195e;
$custom-light: #61568c;
$custom-dark: #000000;
JSON
{
  "hex": "#18195e",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 239.143,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.26735,
    "c": 0.11908,
    "h": 274.2
  },
  "luminance": 0.01698
}

Semantic roles & 50–950 ramp

primary
#18195E
secondary
#94933D
accent
#E045E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #18195E

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

Preview Lab → · Contrast checker → · Palette generator →

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