#18185E#18185E

#18185E is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.6% C 0.120 H 274.5°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#18185E
RGBrgb(24, 24, 94)
HSLhsl(240, 59%, 23%)
HSVhsv(240, 74%, 37%)
CMYKcmyk(74.5%, 74.5%, 0%, 63.1%)
CIE-LABlab(13.56, 25.56, -41.50)
CIE-LCHlch(13.56, 48.74, 301.63°)
OKLaboklab(26.56% 0.0094 -0.1199)
OKLCHoklch(26.56% 0.12 274.5)
XYZxyz(2.7230, 1.6554, 10.7635)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18185E #5E5E18
analogous
#183B5E #18185E #3B185E
triadic
#18185E #5E1818 #185E18
tetradic
#18185E #5E183B #5E5E18 #185E3B
square
#18185E #5E183B #5E5E18 #185E3B
split-complementary
#18185E #5E3B18 #3B5E18
monochromatic
#060618 #0C0C2D #18185E #24248F #3131C0

Accessibility & contrast

On white

15.78
#18185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#18185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18185E
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18185E#FFFFFF#000000##FFFFFF
##18185E1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #18185e;
/* rgb */ color: rgb(24, 24, 94);
/* oklch */ color: oklch(26.6% 0.120 274.5);
Tailwind
colors: {
  custom: {
    50: '#61558c',
    500: '#18185e',
    950: '#000000',
  },
}
SCSS
$custom: #18185e;
$custom-light: #61558c;
$custom-dark: #000000;
JSON
{
  "hex": "#18185e",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 240,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.26556,
    "c": 0.12032,
    "h": 274.5
  },
  "luminance": 0.01656
}

Semantic roles & 50–950 ramp

primary
#18185E
secondary
#94943D
accent
#E345E3
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #18185E

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

Preview Lab → · Contrast checker → · Palette generator →

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