#18307E#18307E

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

Color values

HEX#18307E
RGBrgb(24, 48, 126)
HSLhsl(226, 68%, 29%)
HSVhsv(226, 81%, 49%)
CMYKcmyk(81%, 61.9%, 0%, 50.6%)
CIE-LABlab(23.05, 21.49, -46.74)
CIE-LCHlch(23.05, 51.44, 294.69°)
OKLaboklab(34.47% -0.0091 -0.1351)
OKLCHoklch(34.47% 0.135 266.2)
XYZxyz(5.1982, 3.8139, 20.1968)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18307E #7E6618
analogous
#18637E #18307E #33187E
triadic
#18307E #7E1830 #307E18
tetradic
#18307E #7E1863 #7E6618 #187E33
square
#18307E #7E1863 #7E6618 #187E33
split-complementary
#18307E #7E3318 #637E18
monochromatic
#050A1A #0E1C4B #18307E #2244B1 #375DD9

Accessibility & contrast

On white

11.91
#18307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#18307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18307E
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18307E#FFFFFF#000000##FFFFFF
##18307E1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #18307e;
/* rgb */ color: rgb(24, 48, 126);
/* oklch */ color: oklch(34.5% 0.135 266.2);
Tailwind
colors: {
  custom: {
    50: '#6767a4',
    500: '#18307e',
    950: '#000000',
  },
}
SCSS
$custom: #18307e;
$custom-light: #6767a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18307e",
  "rgb": {
    "r": 24,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 225.882,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34468,
    "c": 0.13538,
    "h": 266.2
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18307E

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

Preview Lab → · Contrast checker → · Palette generator →

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