#18308F#18308F

#18308F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.159 H 266.7°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#18308F
RGBrgb(24, 48, 143)
HSLhsl(228, 71%, 33%)
HSVhsv(228, 83%, 56%)
CMYKcmyk(83.2%, 66.4%, 0%, 43.9%)
CIE-LABlab(24.61, 28.27, -54.81)
CIE-LCHlch(24.61, 61.67, 297.28°)
OKLaboklab(36.11% -0.0092 -0.1587)
OKLCHoklch(36.11% 0.159 266.7)
XYZxyz(6.3898, 4.2905, 26.4727)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18308F #8F7718
analogous
#186B8F #18308F #3B188F
triadic
#18308F #8F1830 #308F18
tetradic
#18308F #8F186B #8F7718 #188F3B
square
#18308F #8F186B #8F7718 #188F3B
split-complementary
#18308F #8F3B18 #6B8F18
monochromatic
#060D26 #0F1E5B #18308F #2142C3 #4262DF

Accessibility & contrast

On white

11.30
#18308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#18308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18308F
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18308F#FFFFFF#000000##FFFFFF
##18308F1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18308f;
/* rgb */ color: rgb(24, 48, 143);
/* oklch */ color: oklch(36.1% 0.159 266.7);
Tailwind
colors: {
  custom: {
    50: '#6c68b1',
    500: '#18308f',
    950: '#000000',
  },
}
SCSS
$custom: #18308f;
$custom-light: #6c68b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18308f",
  "rgb": {
    "r": 24,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 227.899,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36107,
    "c": 0.15899,
    "h": 266.7
  },
  "luminance": 0.04291
}

Semantic roles & 50–950 ramp

primary
#18308F
secondary
#C0A743
accent
#CA3AEE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #18308F

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

Preview Lab → · Contrast checker → · Palette generator →

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