#121D52#121D52

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

Color values

HEX#121D52
RGBrgb(18, 29, 82)
HSLhsl(230, 64%, 20%)
HSVhsv(230, 78%, 32%)
CMYKcmyk(78%, 64.6%, 0%, 67.8%)
CIE-LABlab(13.33, 16.32, -33.81)
CIE-LCHlch(13.33, 37.54, 295.77°)
OKLaboklab(25.91% -0.001 -0.0975)
OKLCHoklch(25.91% 0.098 269.4)
XYZxyz(2.2113, 1.6163, 8.1764)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D52 #524712
analogous
#123D52 #121D52 #271252
triadic
#121D52 #52121D #1D5212
tetradic
#121D52 #52123D #524712 #125227
square
#121D52 #52123D #524712 #125227
split-complementary
#121D52 #522712 #3D5212
monochromatic
#060919 #070B20 #121D52 #1D2F84 #2840B6

Accessibility & contrast

On white

15.87
#121D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121D52
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D52#FFFFFF#000000##FFFFFF
##121D521.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121d52;
/* rgb */ color: rgb(18, 29, 82);
/* oklch */ color: oklch(25.9% 0.098 269.4);
Tailwind
colors: {
  custom: {
    50: '#5a5883',
    500: '#121d52',
    950: '#000000',
  },
}
SCSS
$custom: #121d52;
$custom-light: #5a5883;
$custom-dark: #000000;
JSON
{
  "hex": "#121d52",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 229.688,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25912,
    "c": 0.09755,
    "h": 269.4
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#121D52
secondary
#8B7C35
accent
#CA41E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121D52

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

Preview Lab → · Contrast checker → · Palette generator →

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