#18338E#18338E

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

Color values

HEX#18338E
RGBrgb(24, 51, 142)
HSLhsl(226, 71%, 33%)
HSVhsv(226, 83%, 56%)
CMYKcmyk(83.1%, 64.1%, 0%, 44.3%)
CIE-LABlab(25.30, 25.82, -53.05)
CIE-LCHlch(25.30, 59.00, 295.95°)
OKLaboklab(36.59% -0.0109 -0.1535)
OKLCHoklch(36.59% 0.154 266)
XYZxyz(6.4413, 4.5141, 26.1178)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18338E #8E7318
analogous
#186E8E #18338E #38188E
triadic
#18338E #8E1833 #338E18
tetradic
#18338E #8E186E #8E7318 #188E38
square
#18338E #8E186E #8E7318 #188E38
split-complementary
#18338E #8E3818 #6E8E18
monochromatic
#060D25 #0F205A #18338E #2146C2 #4165DF

Accessibility & contrast

On white

11.04
#18338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18338E
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18338E#FFFFFF#000000##FFFFFF
##18338E1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #18338e;
/* rgb */ color: rgb(24, 51, 142);
/* oklch */ color: oklch(36.6% 0.154 266.0);
Tailwind
colors: {
  custom: {
    50: '#6b6ab0',
    500: '#18338e',
    950: '#000000',
  },
}
SCSS
$custom: #18338e;
$custom-light: #6b6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#18338e",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 226.271,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3659,
    "c": 0.15393,
    "h": 266
  },
  "luminance": 0.04515
}

Semantic roles & 50–950 ramp

primary
#18338E
secondary
#C0A342
accent
#C53AEE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #18338E

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

Preview Lab → · Contrast checker → · Palette generator →

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