#121F56#121F56

#121F56 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.7% C 0.101 H 268.5°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#121F56
RGBrgb(18, 31, 86)
HSLhsl(229, 65%, 20%)
HSVhsv(229, 79%, 34%)
CMYKcmyk(79.1%, 64%, 0%, 66.3%)
CIE-LABlab(14.29, 16.51, -34.96)
CIE-LCHlch(14.29, 38.66, 295.28°)
OKLaboklab(26.74% -0.0027 -0.1009)
OKLCHoklch(26.74% 0.101 268.5)
XYZxyz(2.4186, 1.7802, 9.0184)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F56 #564912
analogous
#124156 #121F56 #271256
triadic
#121F56 #56121F #1F5612
tetradic
#121F56 #561241 #564912 #125627
square
#121F56 #561241 #564912 #125627
split-complementary
#121F56 #562712 #415612
monochromatic
#050919 #070D23 #121F56 #1D3189 #2743BB

Accessibility & contrast

On white

15.49
#121F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#121F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F56
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F56#FFFFFF#000000##FFFFFF
##121F561.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121f56;
/* rgb */ color: rgb(18, 31, 86);
/* oklch */ color: oklch(26.7% 0.101 268.5);
Tailwind
colors: {
  custom: {
    50: '#5b5a86',
    500: '#121f56',
    950: '#000000',
  },
}
SCSS
$custom: #121f56;
$custom-light: #5b5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#121f56",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 228.529,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26742,
    "c": 0.10092,
    "h": 268.5
  },
  "luminance": 0.0178
}

Semantic roles & 50–950 ramp

primary
#121F56
secondary
#8F7E35
accent
#C83FE8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121F56

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

Preview Lab → · Contrast checker → · Palette generator →

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