#18368E#18368E

#18368E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.2% C 0.150 H 265.2°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#18368E
RGBrgb(24, 54, 142)
HSLhsl(225, 71%, 33%)
HSVhsv(225, 83%, 56%)
CMYKcmyk(83.1%, 62%, 0%, 44.3%)
CIE-LABlab(26.11, 23.75, -51.73)
CIE-LCHlch(26.11, 56.92, 294.66°)
OKLaboklab(37.19% -0.0126 -0.1496)
OKLCHoklch(37.19% 0.15 265.2)
XYZxyz(6.5766, 4.7847, 26.1629)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18368E #8E7018
analogous
#18718E #18368E #35188E
triadic
#18368E #8E1836 #368E18
tetradic
#18368E #8E1871 #8E7018 #188E35
square
#18368E #8E1871 #8E7018 #188E35
split-complementary
#18368E #8E3518 #718E18
monochromatic
#060E25 #0F225A #18368E #214AC2 #4169DF

Accessibility & contrast

On white

10.73
#18368E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#18368E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18368E
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18368E#FFFFFF#000000##FFFFFF
##18368E1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #18368e;
/* rgb */ color: rgb(24, 54, 142);
/* oklch */ color: oklch(37.2% 0.150 265.2);
Tailwind
colors: {
  custom: {
    50: '#6b6cb0',
    500: '#18368e',
    950: '#000000',
  },
}
SCSS
$custom: #18368e;
$custom-light: #6b6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#18368e",
  "rgb": {
    "r": 24,
    "g": 54,
    "b": 142
  },
  "hsl": {
    "h": 224.746,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37192,
    "c": 0.15016,
    "h": 265.2
  },
  "luminance": 0.04786
}

Semantic roles & 50–950 ramp

primary
#18368E
secondary
#C0A042
accent
#C03AEE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080711
muted
#7B7A80

Preview Lab

Preview with #18368E

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

Preview Lab → · Contrast checker → · Palette generator →

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