#18315F#18315F

#18315F is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.1% C 0.088 H 261.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#18315F
RGBrgb(24, 49, 95)
HSLhsl(219, 60%, 23%)
HSVhsv(219, 75%, 37%)
CMYKcmyk(74.7%, 48.4%, 0%, 62.7%)
CIE-LABlab(20.89, 7.96, -30.27)
CIE-LCHlch(20.89, 31.30, 284.73°)
OKLaboklab(32.06% -0.0131 -0.0866)
OKLCHoklch(32.06% 0.088 261.4)
XYZxyz(3.5398, 3.2167, 11.2586)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18315F #5F4618
analogous
#18545F #18315F #22185F
triadic
#18315F #5F1831 #315F18
tetradic
#18315F #5F1854 #5F4618 #185F22
square
#18315F #5F1854 #5F4618 #185F22
split-complementary
#18315F #5F2218 #545F18
monochromatic
#060D18 #0C182E #18315F #244A90 #3163C1

Accessibility & contrast

On white

12.78
#18315F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#18315F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18315F
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18315F#FFFFFF#000000##FFFFFF
##18315F1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3661
Deuteranopia (green-blind)
#0C2F5E
Tritanopia (blue-blind)
#003C43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18315f;
/* rgb */ color: rgb(24, 49, 95);
/* oklch */ color: oklch(32.1% 0.088 261.4);
Tailwind
colors: {
  custom: {
    50: '#5f688d',
    500: '#18315f',
    950: '#000000',
  },
}
SCSS
$custom: #18315f;
$custom-light: #5f688d;
$custom-dark: #000000;
JSON
{
  "hex": "#18315f",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 95
  },
  "hsl": {
    "h": 218.873,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.3206,
    "c": 0.08761,
    "h": 261.4
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#18315F
secondary
#95763D
accent
#AB45E3
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #18315F

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

Preview Lab → · Contrast checker → · Palette generator →

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