#121776#121776

#121776 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.8% C 0.155 H 269.4°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#121776
RGBrgb(18, 23, 118)
HSLhsl(237, 74%, 27%)
HSVhsv(237, 85%, 46%)
CMYKcmyk(84.7%, 80.5%, 0%, 53.7%)
CIE-LABlab(15.74, 34.52, -53.66)
CIE-LCHlch(15.74, 63.80, 302.75°)
OKLaboklab(28.83% -0.0016 -0.1554)
OKLCHoklch(28.83% 0.155 269.4)
XYZxyz(3.8247, 2.0489, 17.3299)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121776 #767112
analogous
#124976 #121776 #3F1276
triadic
#121776 #761217 #177612
tetradic
#121776 #761249 #767112 #12763F
square
#121776 #761249 #767112 #12763F
split-complementary
#121776 #763F12 #497612
monochromatic
#04051B #0A0D41 #121776 #1A21AB #252EDE

Accessibility & contrast

On white

14.90
#121776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#121776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121776
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121776#FFFFFF#000000##FFFFFF
##1217761.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002274
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #121776;
/* rgb */ color: rgb(18, 23, 118);
/* oklch */ color: oklch(28.8% 0.155 269.4);
Tailwind
colors: {
  custom: {
    50: '#66569f',
    500: '#121776',
    950: '#000000',
  },
}
SCSS
$custom: #121776;
$custom-light: #66569f;
$custom-dark: #000000;
JSON
{
  "hex": "#121776",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 237,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.2883,
    "c": 0.15546,
    "h": 269.4
  },
  "luminance": 0.02049
}

Semantic roles & 50–950 ramp

primary
#121776
secondary
#ADA737
accent
#E738F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #121776

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

Preview Lab → · Contrast checker → · Palette generator →

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