#18339F#18339F

#18339F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.3% C 0.177 H 266.3°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#18339F
RGBrgb(24, 51, 159)
HSLhsl(228, 74%, 36%)
HSVhsv(228, 85%, 62%)
CMYKcmyk(84.9%, 67.9%, 0%, 37.6%)
CIE-LABlab(26.92, 32.45, -60.84)
CIE-LCHlch(26.92, 68.95, 298.07°)
OKLaboklab(38.27% -0.0114 -0.1763)
OKLCHoklch(38.27% 0.177 266.3)
XYZxyz(7.8163, 5.0641, 33.3597)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18339F #9F8418
analogous
#18769F #18339F #40189F
triadic
#18339F #9F1833 #339F18
tetradic
#18339F #9F1876 #9F8418 #189F40
square
#18339F #9F1876 #9F8418 #189F40
split-complementary
#18339F #9F4018 #769F18
monochromatic
#081135 #10226A #18339F #2044D4 #4D6BE4

Accessibility & contrast

On white

10.43
#18339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#18339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18339F
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18339F#FFFFFF#000000##FFFFFF
##18339F1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#005164
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #18339f;
/* rgb */ color: rgb(24, 51, 159);
/* oklch */ color: oklch(38.3% 0.177 266.3);
Tailwind
colors: {
  custom: {
    50: '#706abc',
    500: '#18339f',
    950: '#000000',
  },
}
SCSS
$custom: #18339f;
$custom-light: #706abc;
$custom-dark: #000000;
JSON
{
  "hex": "#18339f",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 228,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3827,
    "c": 0.17666,
    "h": 266.3
  },
  "luminance": 0.05065
}

Semantic roles & 50–950 ramp

primary
#18339F
secondary
#C6AE4D
accent
#CB37F0
background
#F7F6FB
surface
#EDEBF7
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #18339F

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

Preview Lab → · Contrast checker → · Palette generator →

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