#18338D#18338D

#18338D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.153 H 265.9°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#18338D
RGBrgb(24, 51, 141)
HSLhsl(226, 71%, 32%)
HSVhsv(226, 83%, 55%)
CMYKcmyk(83%, 63.8%, 0%, 44.7%)
CIE-LABlab(25.21, 25.42, -52.58)
CIE-LCHlch(25.21, 58.41, 295.80°)
OKLaboklab(36.49% -0.0109 -0.1522)
OKLCHoklch(36.49% 0.153 265.9)
XYZxyz(6.3665, 4.4842, 25.7241)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18338D #8D7218
analogous
#186D8D #18338D #38188D
triadic
#18338D #8D1833 #338D18
tetradic
#18338D #8D186D #8D7218 #188D38
square
#18338D #8D186D #8D7218 #188D38
split-complementary
#18338D #8D3818 #6D8D18
monochromatic
#060D24 #0F2059 #18338D #2146C1 #4165DF

Accessibility & contrast

On white

11.07
#18338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#18338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18338D
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18338D#FFFFFF#000000##FFFFFF
##18338D1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #18338d;
/* rgb */ color: rgb(24, 51, 141);
/* oklch */ color: oklch(36.5% 0.153 265.9);
Tailwind
colors: {
  custom: {
    50: '#6b6aaf',
    500: '#18338d',
    950: '#000000',
  },
}
SCSS
$custom: #18338d;
$custom-light: #6b6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#18338d",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 226.154,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36494,
    "c": 0.15257,
    "h": 265.9
  },
  "luminance": 0.04485
}

Semantic roles & 50–950 ramp

primary
#18338D
secondary
#BFA242
accent
#C43AEE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #18338D

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

Preview Lab → · Contrast checker → · Palette generator →

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