#121F55#121F55

#121F55 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.6% C 0.099 H 268.4°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#121F55
RGBrgb(18, 31, 85)
HSLhsl(228, 65%, 20%)
HSVhsv(228, 79%, 33%)
CMYKcmyk(78.8%, 63.5%, 0%, 66.7%)
CIE-LABlab(14.20, 16.09, -34.43)
CIE-LCHlch(14.20, 38.00, 295.04°)
OKLaboklab(26.65% -0.0027 -0.0993)
OKLCHoklch(26.65% 0.099 268.4)
XYZxyz(2.3786, 1.7642, 8.8077)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F55 #554812
analogous
#124155 #121F55 #261255
triadic
#121F55 #55121F #1F5512
tetradic
#121F55 #551241 #554812 #125526
square
#121F55 #551241 #554812 #125526
split-complementary
#121F55 #552612 #415512
monochromatic
#050919 #070D22 #121F55 #1D3188 #2744BA

Accessibility & contrast

On white

15.52
#121F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121F55
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F55#FFFFFF#000000##FFFFFF
##121F551.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002757
Deuteranopia (green-blind)
#002154
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121f55;
/* rgb */ color: rgb(18, 31, 85);
/* oklch */ color: oklch(26.6% 0.099 268.4);
Tailwind
colors: {
  custom: {
    50: '#5b5a85',
    500: '#121f55',
    950: '#000000',
  },
}
SCSS
$custom: #121f55;
$custom-light: #5b5a85;
$custom-dark: #000000;
JSON
{
  "hex": "#121f55",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 85
  },
  "hsl": {
    "h": 228.358,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26645,
    "c": 0.09937,
    "h": 268.4
  },
  "luminance": 0.01764
}

Semantic roles & 50–950 ramp

primary
#121F55
secondary
#8E7D35
accent
#C740E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121F55

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

Preview Lab → · Contrast checker → · Palette generator →

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