#182161#182161

#182161 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.6% C 0.113 H 271.1°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#182161
RGBrgb(24, 33, 97)
HSLhsl(233, 60%, 24%)
HSVhsv(233, 75%, 38%)
CMYKcmyk(75.3%, 66%, 0%, 62%)
CIE-LABlab(16.23, 20.45, -39.13)
CIE-LCHlch(16.23, 44.15, 297.59°)
OKLaboklab(28.59% 0.0022 -0.113)
OKLCHoklch(28.59% 0.113 271.1)
XYZxyz(3.0775, 2.1447, 11.5587)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182161 #615818
analogous
#184561 #182161 #331861
triadic
#182161 #611821 #216118
tetradic
#182161 #611845 #615818 #186133
square
#182161 #611845 #615818 #186133
split-complementary
#182161 #613318 #456118
monochromatic
#060819 #0C1030 #182161 #243292 #3042C3

Accessibility & contrast

On white

14.70
#182161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#182161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182161
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182161#FFFFFF#000000##FFFFFF
##1821611.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C63
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#00313D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #182161;
/* rgb */ color: rgb(24, 33, 97);
/* oklch */ color: oklch(28.6% 0.113 271.1);
Tailwind
colors: {
  custom: {
    50: '#615c8f',
    500: '#182161',
    950: '#000000',
  },
}
SCSS
$custom: #182161;
$custom-light: #615c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#182161",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 232.603,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28591,
    "c": 0.11298,
    "h": 271.1
  },
  "luminance": 0.02145
}

Semantic roles & 50–950 ramp

primary
#182161
secondary
#978C3D
accent
#D044E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #182161

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

Preview Lab → · Contrast checker → · Palette generator →

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