#181261#181261

#181261 is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.9% C 0.131 H 275.5°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#181261
RGBrgb(24, 18, 97)
HSLhsl(245, 69%, 23%)
HSVhsv(245, 81%, 38%)
CMYKcmyk(75.3%, 81.4%, 0%, 62%)
CIE-LABlab(12.54, 30.47, -45.19)
CIE-LCHlch(12.54, 54.50, 303.99°)
OKLaboklab(25.93% 0.0126 -0.1307)
OKLCHoklch(25.93% 0.131 275.5)
XYZxyz(2.7500, 1.4896, 11.4495)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181261 #5B6112
analogous
#123361 #181261 #401261
triadic
#181261 #611812 #126118
tetradic
#181261 #611233 #5B6112 #126140
square
#181261 #611233 #5B6112 #126140
split-complementary
#181261 #614012 #336112
monochromatic
#06051A #0B082D #181261 #251C95 #3225C8

Accessibility & contrast

On white

16.18
#181261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#181261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181261
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181261#FFFFFF#000000##FFFFFF
##1812611.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002463
Deuteranopia (green-blind)
#001D60
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181261;
/* rgb */ color: rgb(24, 18, 97);
/* oklch */ color: oklch(25.9% 0.131 275.5);
Tailwind
colors: {
  custom: {
    50: '#62518f',
    500: '#181261',
    950: '#000000',
  },
}
SCSS
$custom: #181261;
$custom-light: #62518f;
$custom-dark: #000000;
JSON
{
  "hex": "#181261",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 244.557,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.25931,
    "c": 0.13126,
    "h": 275.5
  },
  "luminance": 0.0149
}

Semantic roles & 50–950 ramp

primary
#181261
secondary
#929936
accent
#EC3CDE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #181261

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

Preview Lab → · Contrast checker → · Palette generator →

#181261 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva