#121F53#121F53

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

Color values

HEX#121F53
RGBrgb(18, 31, 83)
HSLhsl(228, 64%, 20%)
HSVhsv(228, 78%, 33%)
CMYKcmyk(78.3%, 62.7%, 0%, 67.5%)
CIE-LABlab(14.02, 15.24, -33.37)
CIE-LCHlch(14.02, 36.68, 294.54°)
OKLaboklab(26.46% -0.0028 -0.0962)
OKLCHoklch(26.46% 0.096 268.3)
XYZxyz(2.3002, 1.7329, 8.3952)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F53 #534612
analogous
#124053 #121F53 #261253
triadic
#121F53 #53121F #1F5312
tetradic
#121F53 #531240 #534612 #125326
square
#121F53 #531240 #534612 #125326
split-complementary
#121F53 #532612 #405312
monochromatic
#050919 #070C21 #121F53 #1D3285 #2845B8

Accessibility & contrast

On white

15.59
#121F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#121F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F53
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F53#FFFFFF#000000##FFFFFF
##121F531.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002755
Deuteranopia (green-blind)
#002152
Tritanopia (blue-blind)
#002C35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121f53;
/* rgb */ color: rgb(18, 31, 83);
/* oklch */ color: oklch(26.5% 0.096 268.3);
Tailwind
colors: {
  custom: {
    50: '#5b5a84',
    500: '#121f53',
    950: '#000000',
  },
}
SCSS
$custom: #121f53;
$custom-light: #5b5a84;
$custom-dark: #000000;
JSON
{
  "hex": "#121f53",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 83
  },
  "hsl": {
    "h": 228,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26455,
    "c": 0.09625,
    "h": 268.3
  },
  "luminance": 0.01733
}

Semantic roles & 50–950 ramp

primary
#121F53
secondary
#8C7A35
accent
#C640E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121F53

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

Preview Lab → · Contrast checker → · Palette generator →

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