#121A51#121A51

#121A51 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.100 H 270.9°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#121A51
RGBrgb(18, 26, 81)
HSLhsl(232, 64%, 19%)
HSVhsv(232, 78%, 32%)
CMYKcmyk(77.8%, 67.9%, 0%, 68.2%)
CIE-LABlab(12.36, 18.14, -34.71)
CIE-LCHlch(12.36, 39.16, 297.59°)
OKLaboklab(25.17% 0.0015 -0.1002)
OKLCHoklch(25.17% 0.1 270.9)
XYZxyz(2.1035, 1.4613, 7.9542)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121A51 #514912
analogous
#123A51 #121A51 #2A1251
triadic
#121A51 #51121A #1A5112
tetradic
#121A51 #51123A #514912 #12512A
square
#121A51 #51123A #514912 #12512A
split-complementary
#121A51 #512A12 #3A5112
monochromatic
#060819 #070A1F #121A51 #1D2A83 #283AB5

Accessibility & contrast

On white

16.25
#121A51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#121A51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121A51
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121A51#FFFFFF#000000##FFFFFF
##121A511.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#001D50
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121a51;
/* rgb */ color: rgb(18, 26, 81);
/* oklch */ color: oklch(25.2% 0.100 270.9);
Tailwind
colors: {
  custom: {
    50: '#5a5682',
    500: '#121a51',
    950: '#000000',
  },
}
SCSS
$custom: #121a51;
$custom-light: #5a5682;
$custom-dark: #000000;
JSON
{
  "hex": "#121a51",
  "rgb": {
    "r": 18,
    "g": 26,
    "b": 81
  },
  "hsl": {
    "h": 232.381,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25165,
    "c": 0.10023,
    "h": 270.9
  },
  "luminance": 0.01461
}

Semantic roles & 50–950 ramp

primary
#121A51
secondary
#8A7F35
accent
#D241E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #121A51

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

Preview Lab → · Contrast checker → · Palette generator →

#121A51 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva