#121841#121841

#121841 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.2% C 0.078 H 272.6°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#121841
RGBrgb(18, 24, 65)
HSLhsl(232, 57%, 16%)
HSVhsv(232, 72%, 25%)
CMYKcmyk(72.3%, 63.1%, 0%, 74.5%)
CIE-LABlab(10.28, 12.95, -26.98)
CIE-LCHlch(10.28, 29.93, 295.64°)
OKLaboklab(23.16% 0.0035 -0.0775)
OKLCHoklch(23.16% 0.078 272.6)
XYZxyz(1.5299, 1.1634, 5.1439)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121841 #413B12
analogous
#123041 #121841 #241241
triadic
#121841 #411218 #184112
tetradic
#121841 #411230 #413B12 #124124
square
#121841 #411230 #413B12 #124124
split-complementary
#121841 #412412 #304112
monochromatic
#070918 #070918 #121841 #1F2A71 #2D3BA1

Accessibility & contrast

On white

17.03
#121841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#121841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121841
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121841#FFFFFF#000000##FFFFFF
##1218411.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#001A40
Tritanopia (blue-blind)
#002229
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #121841;
/* rgb */ color: rgb(18, 24, 65);
/* oklch */ color: oklch(23.2% 0.078 272.6);
Tailwind
colors: {
  custom: {
    50: '#565476',
    500: '#121841',
    950: '#000000',
  },
}
SCSS
$custom: #121841;
$custom-light: #565476;
$custom-dark: #000000;
JSON
{
  "hex": "#121841",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 65
  },
  "hsl": {
    "h": 232.34,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23161,
    "c": 0.07762,
    "h": 272.6
  },
  "luminance": 0.01164
}

Semantic roles & 50–950 ramp

primary
#121841
secondary
#7A7135
accent
#CC48E0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #121841

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

Preview Lab → · Contrast checker → · Palette generator →

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