#121D56#121D56

#121D56 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.104 H 269.4°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#121D56
RGBrgb(18, 29, 86)
HSLhsl(230, 65%, 20%)
HSVhsv(230, 79%, 34%)
CMYKcmyk(79.1%, 66.3%, 0%, 66.3%)
CIE-LABlab(13.70, 18.00, -35.91)
CIE-LCHlch(13.70, 40.17, 296.62°)
OKLaboklab(26.31% -0.001 -0.1037)
OKLCHoklch(26.31% 0.104 269.4)
XYZxyz(2.3680, 1.6790, 9.0016)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D56 #564B12
analogous
#123F56 #121D56 #291256
triadic
#121D56 #56121D #1D5612
tetradic
#121D56 #56123F #564B12 #125629
square
#121D56 #56123F #564B12 #125629
split-complementary
#121D56 #562912 #3F5612
monochromatic
#050919 #070C23 #121D56 #1D2E89 #273FBB

Accessibility & contrast

On white

15.72
#121D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121D56
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D56#FFFFFF#000000##FFFFFF
##121D561.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121d56;
/* rgb */ color: rgb(18, 29, 86);
/* oklch */ color: oklch(26.3% 0.104 269.4);
Tailwind
colors: {
  custom: {
    50: '#5c5886',
    500: '#121d56',
    950: '#000000',
  },
}
SCSS
$custom: #121d56;
$custom-light: #5c5886;
$custom-dark: #000000;
JSON
{
  "hex": "#121d56",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 86
  },
  "hsl": {
    "h": 230.294,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26307,
    "c": 0.10372,
    "h": 269.4
  },
  "luminance": 0.01679
}

Semantic roles & 50–950 ramp

primary
#121D56
secondary
#8F8035
accent
#CD3FE8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121D56

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

Preview Lab → · Contrast checker → · Palette generator →

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