#121C51#121C51

#121C51 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.097 H 269.9°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#121C51
RGBrgb(18, 28, 81)
HSLhsl(230, 64%, 19%)
HSVhsv(230, 78%, 32%)
CMYKcmyk(77.8%, 65.4%, 0%, 68.2%)
CIE-LABlab(12.94, 16.65, -33.76)
CIE-LCHlch(12.94, 37.64, 296.25°)
OKLaboklab(25.6% -0.0002 -0.0974)
OKLCHoklch(25.6% 0.097 269.9)
XYZxyz(2.1494, 1.5530, 7.9695)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121C51 #514712
analogous
#123C51 #121C51 #281251
triadic
#121C51 #51121C #1C5112
tetradic
#121C51 #51123C #514712 #125128
square
#121C51 #51123C #514712 #125128
split-complementary
#121C51 #512812 #3C5112
monochromatic
#060919 #070B1F #121C51 #1D2D83 #283FB5

Accessibility & contrast

On white

16.02
#121C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#121C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121C51
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121C51#FFFFFF#000000##FFFFFF
##121C511.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002453
Deuteranopia (green-blind)
#001F50
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #121c51;
/* rgb */ color: rgb(18, 28, 81);
/* oklch */ color: oklch(25.6% 0.097 269.9);
Tailwind
colors: {
  custom: {
    50: '#5a5782',
    500: '#121c51',
    950: '#000000',
  },
}
SCSS
$custom: #121c51;
$custom-light: #5a5782;
$custom-dark: #000000;
JSON
{
  "hex": "#121c51",
  "rgb": {
    "r": 18,
    "g": 28,
    "b": 81
  },
  "hsl": {
    "h": 230.476,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25595,
    "c": 0.09741,
    "h": 269.9
  },
  "luminance": 0.01553
}

Semantic roles & 50–950 ramp

primary
#121C51
secondary
#8A7C35
accent
#CC41E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #121C51

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

Preview Lab → · Contrast checker → · Palette generator →

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