#121C52#121C52

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

Color values

HEX#121C52
RGBrgb(18, 28, 82)
HSLhsl(231, 64%, 20%)
HSVhsv(231, 78%, 32%)
CMYKcmyk(78%, 65.9%, 0%, 67.8%)
CIE-LABlab(13.03, 17.07, -34.29)
CIE-LCHlch(13.03, 38.30, 296.46°)
OKLaboklab(25.69% -0.0002 -0.099)
OKLCHoklch(25.69% 0.099 269.9)
XYZxyz(2.1872, 1.5681, 8.1684)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121C52 #524812
analogous
#123C52 #121C52 #281252
triadic
#121C52 #52121C #1C5212
tetradic
#121C52 #52123C #524812 #125228
square
#121C52 #52123C #524812 #125228
split-complementary
#121C52 #522812 #3C5212
monochromatic
#060919 #070B20 #121C52 #1D2D84 #283EB6

Accessibility & contrast

On white

15.99
#121C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121C52
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121C52#FFFFFF#000000##FFFFFF
##121C521.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121c52;
/* rgb */ color: rgb(18, 28, 82);
/* oklch */ color: oklch(25.7% 0.099 269.9);
Tailwind
colors: {
  custom: {
    50: '#5b5783',
    500: '#121c52',
    950: '#000000',
  },
}
SCSS
$custom: #121c52;
$custom-light: #5b5783;
$custom-dark: #000000;
JSON
{
  "hex": "#121c52",
  "rgb": {
    "r": 18,
    "g": 28,
    "b": 82
  },
  "hsl": {
    "h": 230.625,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25693,
    "c": 0.09896,
    "h": 269.9
  },
  "luminance": 0.01568
}

Semantic roles & 50–950 ramp

primary
#121C52
secondary
#8B7D35
accent
#CD41E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121C52

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

Preview Lab → · Contrast checker → · Palette generator →

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