#18145D#18145D

#18145D is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.8% C 0.124 H 275.7°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#18145D
RGBrgb(24, 20, 93)
HSLhsl(243, 65%, 22%)
HSVhsv(243, 78%, 36%)
CMYKcmyk(74.2%, 78.5%, 0%, 63.5%)
CIE-LABlab(12.51, 27.81, -42.57)
CIE-LCHlch(12.51, 50.85, 303.15°)
OKLaboklab(25.77% 0.0123 -0.123)
OKLCHoklch(25.77% 0.124 275.7)
XYZxyz(2.6020, 1.4846, 10.5032)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18145D #595D14
analogous
#14345D #18145D #3D145D
triadic
#18145D #5D1814 #145D18
tetradic
#18145D #5D1434 #595D14 #145D3D
square
#18145D #5D1434 #595D14 #145D3D
split-complementary
#18145D #5D3D14 #345D14
monochromatic
#060519 #0B092B #18145D #251F8F #322AC2

Accessibility & contrast

On white

16.19
#18145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18145D
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18145D#FFFFFF#000000##FFFFFF
##18145D1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#001D5C
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #18145d;
/* rgb */ color: rgb(24, 20, 93);
/* oklch */ color: oklch(25.8% 0.124 275.7);
Tailwind
colors: {
  custom: {
    50: '#61528c',
    500: '#18145d',
    950: '#000000',
  },
}
SCSS
$custom: #18145d;
$custom-light: #61528c;
$custom-dark: #000000;
JSON
{
  "hex": "#18145d",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 243.288,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2577,
    "c": 0.12366,
    "h": 275.7
  },
  "luminance": 0.01485
}

Semantic roles & 50–950 ramp

primary
#18145D
secondary
#909538
accent
#E840DE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18145D

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

Preview Lab → · Contrast checker → · Palette generator →

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