#18267F#18267F

#18267F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.149 H 268.8°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#18267F
RGBrgb(24, 38, 127)
HSLhsl(232, 68%, 30%)
HSVhsv(232, 81%, 50%)
CMYKcmyk(81.1%, 70.1%, 0%, 50.2%)
CIE-LABlab(20.49, 28.80, -51.56)
CIE-LCHlch(20.49, 59.06, 299.19°)
OKLaboklab(32.61% -0.003 -0.1493)
OKLCHoklch(32.61% 0.149 268.8)
XYZxyz(4.8992, 3.1122, 20.4171)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18267F #7F7118
analogous
#18597F #18267F #3E187F
triadic
#18267F #7F1826 #267F18
tetradic
#18267F #7F1859 #7F7118 #187F3E
square
#18267F #7F1859 #7F7118 #187F3E
split-complementary
#18267F #7F3E18 #597F18
monochromatic
#05081A #0E174C #18267F #2235B2 #384ED9

Accessibility & contrast

On white

12.94
#18267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18267F
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18267F#FFFFFF#000000##FFFFFF
##18267F1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #18267f;
/* rgb */ color: rgb(24, 38, 127);
/* oklch */ color: oklch(32.6% 0.149 268.8);
Tailwind
colors: {
  custom: {
    50: '#6860a5',
    500: '#18267f',
    950: '#000000',
  },
}
SCSS
$custom: #18267f;
$custom-light: #6860a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18267f",
  "rgb": {
    "r": 24,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 231.845,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32612,
    "c": 0.14933,
    "h": 268.8
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18267F

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

Preview Lab → · Contrast checker → · Palette generator →

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