#18289E#18289E

#18289E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.187 H 267.8°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#18289E
RGBrgb(24, 40, 158)
HSLhsl(233, 74%, 36%)
HSVhsv(233, 85%, 62%)
CMYKcmyk(84.8%, 74.7%, 0%, 38%)
CIE-LABlab(24.26, 39.06, -64.61)
CIE-LCHlch(24.26, 75.50, 301.16°)
OKLaboklab(36.32% -0.0072 -0.1873)
OKLCHoklch(36.32% 0.187 267.8)
XYZxyz(7.3049, 4.1795, 32.7628)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18289E #9E8E18
analogous
#186B9E #18289E #4B189E
triadic
#18289E #9E1828 #289E18
tetradic
#18289E #9E186B #9E8E18 #189E4B
square
#18289E #9E186B #9E8E18 #189E4B
split-complementary
#18289E #9E4B18 #6B9E18
monochromatic
#080D34 #101B69 #18289E #2035D3 #4D5FE4

Accessibility & contrast

On white

11.44
#18289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#18289E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18289E
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18289E#FFFFFF#000000##FFFFFF
##18289E1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #18289e;
/* rgb */ color: rgb(24, 40, 158);
/* oklch */ color: oklch(36.3% 0.187 267.8);
Tailwind
colors: {
  custom: {
    50: '#7163bc',
    500: '#18289e',
    950: '#000000',
  },
}
SCSS
$custom: #18289e;
$custom-light: #7163bc;
$custom-dark: #000000;
JSON
{
  "hex": "#18289e",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 232.836,
    "s": 73.626,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36315,
    "c": 0.18743,
    "h": 267.8
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#18289E
secondary
#C6B74C
accent
#DA38F0
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #18289E

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

Preview Lab → · Contrast checker → · Palette generator →

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