#121956#121956

#121956 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.5% C 0.109 H 271.1°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#121956
RGBrgb(18, 25, 86)
HSLhsl(234, 65%, 20%)
HSVhsv(234, 79%, 34%)
CMYKcmyk(79.1%, 70.9%, 0%, 66.3%)
CIE-LABlab(12.58, 20.93, -37.75)
CIE-LCHlch(12.58, 43.17, 299.01°)
OKLaboklab(25.48% 0.002 -0.1091)
OKLCHoklch(25.48% 0.109 271.1)
XYZxyz(2.2762, 1.4955, 8.9710)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121956 #564F12
analogous
#123B56 #121956 #2D1256
triadic
#121956 #561219 #195612
tetradic
#121956 #56123B #564F12 #12562D
square
#121956 #56123B #564F12 #12562D
split-complementary
#121956 #562D12 #3B5612
monochromatic
#050719 #070A23 #121956 #1D2889 #2736BB

Accessibility & contrast

On white

16.16
#121956 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#121956 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121956
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121956#FFFFFF#000000##FFFFFF
##1219561.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#001E55
Tritanopia (blue-blind)
#002935
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #121956;
/* rgb */ color: rgb(18, 25, 86);
/* oklch */ color: oklch(25.5% 0.109 271.1);
Tailwind
colors: {
  custom: {
    50: '#5c5586',
    500: '#121956',
    950: '#000000',
  },
}
SCSS
$custom: #121956;
$custom-light: #5c5586;
$custom-dark: #000000;
JSON
{
  "hex": "#121956",
  "rgb": {
    "r": 18,
    "g": 25,
    "b": 86
  },
  "hsl": {
    "h": 233.824,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.2548,
    "c": 0.10916,
    "h": 271.1
  },
  "luminance": 0.01496
}

Semantic roles & 50–950 ramp

primary
#121956
secondary
#8F8535
accent
#D73FE8
background
#F5F5F8
surface
#E9E8EF
border
#C5C4CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #121956

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

Preview Lab → · Contrast checker → · Palette generator →

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