#121281#121281

#121281 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.6% C 0.173 H 269.1°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#121281
RGBrgb(18, 18, 129)
HSLhsl(240, 76%, 29%)
HSVhsv(240, 86%, 51%)
CMYKcmyk(86%, 86%, 0%, 49.4%)
CIE-LABlab(16.23, 40.96, -59.88)
CIE-LCHlch(16.23, 72.55, 304.37°)
OKLaboklab(29.58% -0.0027 -0.1733)
OKLCHoklch(29.58% 0.173 269.1)
XYZxyz(4.4269, 2.1457, 20.9455)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121281 #818112
analogous
#124A81 #121281 #4A1281
triadic
#121281 #811212 #128112
tetradic
#121281 #81124A #818112 #12814A
square
#121281 #81124A #818112 #12814A
split-complementary
#121281 #814A12 #4A8112
monochromatic
#04041B #0B0B4B #121281 #1919B7 #2C2CE2

Accessibility & contrast

On white

14.69
#121281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121281
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121281#FFFFFF#000000##FFFFFF
##1212811.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E84
Deuteranopia (green-blind)
#00227F
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #121281;
/* rgb */ color: rgb(18, 18, 129);
/* oklch */ color: oklch(29.6% 0.173 269.1);
Tailwind
colors: {
  custom: {
    50: '#6954a7',
    500: '#121281',
    950: '#000000',
  },
}
SCSS
$custom: #121281;
$custom-light: #6954a7;
$custom-dark: #000000;
JSON
{
  "hex": "#121281",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 240,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.29579,
    "c": 0.17337,
    "h": 269.1
  },
  "luminance": 0.02146
}

Semantic roles & 50–950 ramp

primary
#121281
secondary
#B7B738
accent
#F236F2
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #121281

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

Preview Lab → · Contrast checker → · Palette generator →

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