#18307F#18307F

#18307F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.137 H 266.2°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#18307F
RGBrgb(24, 48, 127)
HSLhsl(226, 68%, 30%)
HSVhsv(226, 81%, 50%)
CMYKcmyk(81.1%, 62.2%, 0%, 50.2%)
CIE-LABlab(23.13, 21.89, -47.23)
CIE-LCHlch(23.13, 52.05, 294.87°)
OKLaboklab(34.56% -0.0091 -0.1365)
OKLCHoklch(34.56% 0.137 266.2)
XYZxyz(5.2631, 3.8398, 20.5383)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18307F #7F6718
analogous
#18647F #18307F #33187F
triadic
#18307F #7F1830 #307F18
tetradic
#18307F #7F1864 #7F6718 #187F33
square
#18307F #7F1864 #7F6718 #187F33
split-complementary
#18307F #7F3318 #647F18
monochromatic
#050A1A #0E1D4C #18307F #2243B2 #385ED9

Accessibility & contrast

On white

11.88
#18307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#18307F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18307F
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18307F#FFFFFF#000000##FFFFFF
##18307F1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #18307f;
/* rgb */ color: rgb(24, 48, 127);
/* oklch */ color: oklch(34.6% 0.137 266.2);
Tailwind
colors: {
  custom: {
    50: '#6767a5',
    500: '#18307f',
    950: '#000000',
  },
}
SCSS
$custom: #18307f;
$custom-light: #6767a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18307f",
  "rgb": {
    "r": 24,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 226.019,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34561,
    "c": 0.13681,
    "h": 266.2
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#18307F
secondary
#B3983F
accent
#C23DEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #18307F

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

Preview Lab → · Contrast checker → · Palette generator →

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