#18267E#18267E

#18267E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.148 H 268.9°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#18267E
RGBrgb(24, 38, 126)
HSLhsl(232, 68%, 29%)
HSVhsv(232, 81%, 49%)
CMYKcmyk(81%, 69.8%, 0%, 50.6%)
CIE-LABlab(20.39, 28.42, -51.10)
CIE-LCHlch(20.39, 58.47, 299.08°)
OKLaboklab(32.51% -0.0029 -0.1479)
OKLCHoklch(32.51% 0.148 268.9)
XYZxyz(4.8344, 3.0862, 20.0755)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18267E #7E7018
analogous
#18597E #18267E #3D187E
triadic
#18267E #7E1826 #267E18
tetradic
#18267E #7E1859 #7E7018 #187E3D
square
#18267E #7E1859 #7E7018 #187E3D
split-complementary
#18267E #7E3D18 #597E18
monochromatic
#05081A #0E164B #18267E #2236B1 #374ED9

Accessibility & contrast

On white

12.98
#18267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#18267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18267E
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18267E#FFFFFF#000000##FFFFFF
##18267E1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #18267e;
/* rgb */ color: rgb(24, 38, 126);
/* oklch */ color: oklch(32.5% 0.148 268.9);
Tailwind
colors: {
  custom: {
    50: '#6860a4',
    500: '#18267e',
    950: '#000000',
  },
}
SCSS
$custom: #18267e;
$custom-light: #6860a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18267e",
  "rgb": {
    "r": 24,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 231.765,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32507,
    "c": 0.14797,
    "h": 268.9
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#18267E
secondary
#B2A33F
accent
#D33DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18267E

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

Preview Lab → · Contrast checker → · Palette generator →

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