#121276#121276

#121276 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.160 H 269.9°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#121276
RGBrgb(18, 18, 118)
HSLhsl(240, 74%, 27%)
HSVhsv(240, 85%, 46%)
CMYKcmyk(84.7%, 84.7%, 0%, 53.7%)
CIE-LABlab(14.78, 37.30, -55.25)
CIE-LCHlch(14.78, 66.66, 304.02°)
OKLaboklab(28.16% -0.0003 -0.16)
OKLCHoklch(28.16% 0.16 269.9)
XYZxyz(3.7347, 1.8688, 17.2999)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121276 #767612
analogous
#124476 #121276 #441276
triadic
#121276 #761212 #127612
tetradic
#121276 #761244 #767612 #127644
square
#121276 #761244 #767612 #127644
split-complementary
#121276 #764412 #447612
monochromatic
#04041B #0A0A41 #121276 #1A1AAB #2525DE

Accessibility & contrast

On white

15.29
#121276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#121276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121276
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121276#FFFFFF#000000##FFFFFF
##1212761.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A79
Deuteranopia (green-blind)
#002074
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #121276;
/* rgb */ color: rgb(18, 18, 118);
/* oklch */ color: oklch(28.2% 0.160 269.9);
Tailwind
colors: {
  custom: {
    50: '#66539f',
    500: '#121276',
    950: '#000000',
  },
}
SCSS
$custom: #121276;
$custom-light: #66539f;
$custom-dark: #000000;
JSON
{
  "hex": "#121276",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 240,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.28159,
    "c": 0.15997,
    "h": 269.9
  },
  "luminance": 0.01869
}

Semantic roles & 50–950 ramp

primary
#121276
secondary
#ADAD37
accent
#F038F0
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020F
muted
#7A787E

Preview Lab

Preview with #121276

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

Preview Lab → · Contrast checker → · Palette generator →

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