#121F52#121F52

#121F52 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.095 H 268.3°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#121F52
RGBrgb(18, 31, 82)
HSLhsl(228, 64%, 20%)
HSVhsv(228, 78%, 32%)
CMYKcmyk(78%, 62.2%, 0%, 67.8%)
CIE-LABlab(13.93, 14.81, -32.83)
CIE-LCHlch(13.93, 36.02, 294.28°)
OKLaboklab(26.36% -0.0028 -0.0946)
OKLCHoklch(26.36% 0.095 268.3)
XYZxyz(2.2619, 1.7175, 8.1933)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F52 #524512
analogous
#123F52 #121F52 #251252
triadic
#121F52 #52121F #1F5212
tetradic
#121F52 #52123F #524512 #125225
square
#121F52 #52123F #524512 #125225
split-complementary
#121F52 #522512 #3F5212
monochromatic
#060919 #070C20 #121F52 #1D3284 #2845B6

Accessibility & contrast

On white

15.63
#121F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#121F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F52
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F52#FFFFFF#000000##FFFFFF
##121F521.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#002C35
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121f52;
/* rgb */ color: rgb(18, 31, 82);
/* oklch */ color: oklch(26.4% 0.095 268.3);
Tailwind
colors: {
  custom: {
    50: '#5a5a83',
    500: '#121f52',
    950: '#000000',
  },
}
SCSS
$custom: #121f52;
$custom-light: #5a5a83;
$custom-dark: #000000;
JSON
{
  "hex": "#121f52",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 227.813,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2636,
    "c": 0.09468,
    "h": 268.3
  },
  "luminance": 0.01718
}

Semantic roles & 50–950 ramp

primary
#121F52
secondary
#8B7935
accent
#C541E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121F52

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

Preview Lab → · Contrast checker → · Palette generator →

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