#18338A#18338A

#18338A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.148 H 265.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#18338A
RGBrgb(24, 51, 138)
HSLhsl(226, 70%, 32%)
HSVhsv(226, 83%, 54%)
CMYKcmyk(82.6%, 63%, 0%, 45.9%)
CIE-LABlab(24.94, 24.23, -51.17)
CIE-LCHlch(24.94, 56.61, 295.34°)
OKLaboklab(36.21% -0.0109 -0.148)
OKLCHoklch(36.21% 0.148 265.8)
XYZxyz(6.1463, 4.3961, 24.5644)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18338A #8A6F18
analogous
#186C8A #18338A #36188A
triadic
#18338A #8A1833 #338A18
tetradic
#18338A #8A186C #8A6F18 #188A36
square
#18338A #8A186C #8A6F18 #188A36
split-complementary
#18338A #8A3618 #6C8A18
monochromatic
#060C22 #0F2056 #18338A #2146BE #3F64DE

Accessibility & contrast

On white

11.17
#18338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#18338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18338A
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18338A#FFFFFF#000000##FFFFFF
##18338A1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #18338a;
/* rgb */ color: rgb(24, 51, 138);
/* oklch */ color: oklch(36.2% 0.148 265.8);
Tailwind
colors: {
  custom: {
    50: '#6a6aad',
    500: '#18338a',
    950: '#000000',
  },
}
SCSS
$custom: #18338a;
$custom-light: #6a6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#18338a",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 225.789,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36209,
    "c": 0.14842,
    "h": 265.8
  },
  "luminance": 0.04397
}

Semantic roles & 50–950 ramp

primary
#18338A
secondary
#BDA040
accent
#C33BED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #18338A

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

Preview Lab → · Contrast checker → · Palette generator →

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