#121D51#121D51

#121D51 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.8% C 0.096 H 269.4°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#121D51
RGBrgb(18, 29, 81)
HSLhsl(230, 64%, 19%)
HSVhsv(230, 78%, 32%)
CMYKcmyk(77.8%, 64.2%, 0%, 68.2%)
CIE-LABlab(13.24, 15.90, -33.28)
CIE-LCHlch(13.24, 36.88, 295.53°)
OKLaboklab(25.82% -0.001 -0.096)
OKLCHoklch(25.82% 0.096 269.4)
XYZxyz(2.1735, 1.6012, 7.9775)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D51 #514612
analogous
#123D51 #121D51 #271251
triadic
#121D51 #51121D #1D5112
tetradic
#121D51 #51123D #514612 #125127
square
#121D51 #51123D #514612 #125127
split-complementary
#121D51 #512712 #3D5112
monochromatic
#060919 #070B1F #121D51 #1D2F83 #2841B5

Accessibility & contrast

On white

15.91
#121D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#121D51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121D51
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D51#FFFFFF#000000##FFFFFF
##121D511.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002553
Deuteranopia (green-blind)
#001F50
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #121d51;
/* rgb */ color: rgb(18, 29, 81);
/* oklch */ color: oklch(25.8% 0.096 269.4);
Tailwind
colors: {
  custom: {
    50: '#5a5882',
    500: '#121d51',
    950: '#000000',
  },
}
SCSS
$custom: #121d51;
$custom-light: #5a5882;
$custom-dark: #000000;
JSON
{
  "hex": "#121d51",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 81
  },
  "hsl": {
    "h": 229.524,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25815,
    "c": 0.09599,
    "h": 269.4
  },
  "luminance": 0.01601
}

Semantic roles & 50–950 ramp

primary
#121D51
secondary
#8A7B35
accent
#CA41E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #121D51

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

Preview Lab → · Contrast checker → · Palette generator →

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