#18338F#18338F

#18338F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.155 H 266.0°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#18338F
RGBrgb(24, 51, 143)
HSLhsl(226, 71%, 33%)
HSVhsv(226, 83%, 56%)
CMYKcmyk(83.2%, 64.3%, 0%, 43.9%)
CIE-LABlab(25.39, 26.22, -53.52)
CIE-LCHlch(25.39, 59.60, 296.10°)
OKLaboklab(36.69% -0.0109 -0.1549)
OKLCHoklch(36.69% 0.155 266)
XYZxyz(6.5167, 4.5442, 26.5149)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18338F #8F7418
analogous
#186E8F #18338F #39188F
triadic
#18338F #8F1833 #338F18
tetradic
#18338F #8F186E #8F7418 #188F39
square
#18338F #8F186E #8F7418 #188F39
split-complementary
#18338F #8F3918 #6E8F18
monochromatic
#060E26 #0F205B #18338F #2146C3 #4266DF

Accessibility & contrast

On white

11.00
#18338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#18338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18338F
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18338F#FFFFFF#000000##FFFFFF
##18338F1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #18338f;
/* rgb */ color: rgb(24, 51, 143);
/* oklch */ color: oklch(36.7% 0.155 266.0);
Tailwind
colors: {
  custom: {
    50: '#6c6ab1',
    500: '#18338f',
    950: '#000000',
  },
}
SCSS
$custom: #18338f;
$custom-light: #6c6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#18338f",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 226.387,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36687,
    "c": 0.1553,
    "h": 266
  },
  "luminance": 0.04545
}

Semantic roles & 50–950 ramp

primary
#18338F
secondary
#C0A443
accent
#C53AEE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #18338F

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

Preview Lab → · Contrast checker → · Palette generator →

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