#18308D#18308D

#18308D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.156 H 266.6°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#18308D
RGBrgb(24, 48, 141)
HSLhsl(228, 71%, 32%)
HSVhsv(228, 83%, 55%)
CMYKcmyk(83%, 66%, 0%, 44.7%)
CIE-LABlab(24.42, 27.48, -53.88)
CIE-LCHlch(24.42, 60.49, 297.02°)
OKLaboklab(35.91% -0.0092 -0.156)
OKLCHoklch(35.91% 0.156 266.6)
XYZxyz(6.2397, 4.2304, 25.6818)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18308D #8D7518
analogous
#186B8D #18308D #3A188D
triadic
#18308D #8D1830 #308D18
tetradic
#18308D #8D186B #8D7518 #188D3A
square
#18308D #8D186B #8D7518 #188D3A
split-complementary
#18308D #8D3A18 #6B8D18
monochromatic
#060C24 #0F1E59 #18308D #2142C1 #4161DF

Accessibility & contrast

On white

11.37
#18308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#18308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18308D
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18308D#FFFFFF#000000##FFFFFF
##18308D1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #18308d;
/* rgb */ color: rgb(24, 48, 141);
/* oklch */ color: oklch(35.9% 0.156 266.6);
Tailwind
colors: {
  custom: {
    50: '#6b68af',
    500: '#18308d',
    950: '#000000',
  },
}
SCSS
$custom: #18308d;
$custom-light: #6b68af;
$custom-dark: #000000;
JSON
{
  "hex": "#18308d",
  "rgb": {
    "r": 24,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 227.692,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35909,
    "c": 0.15628,
    "h": 266.6
  },
  "luminance": 0.04231
}

Semantic roles & 50–950 ramp

primary
#18308D
secondary
#BFA542
accent
#C93AEE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #18308D

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

Preview Lab → · Contrast checker → · Palette generator →

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