#121F57#121F57

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

Color values

HEX#121F57
RGBrgb(18, 31, 87)
HSLhsl(229, 66%, 21%)
HSVhsv(229, 79%, 34%)
CMYKcmyk(79.3%, 64.4%, 0%, 65.9%)
CIE-LABlab(14.38, 16.93, -35.48)
CIE-LCHlch(14.38, 39.32, 295.51°)
OKLaboklab(26.84% -0.0027 -0.1024)
OKLCHoklch(26.84% 0.102 268.5)
XYZxyz(2.4591, 1.7964, 9.2321)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F57 #574A12
analogous
#124157 #121F57 #281257
triadic
#121F57 #57121F #1F5712
tetradic
#121F57 #571241 #574A12 #125728
square
#121F57 #571241 #574A12 #125728
split-complementary
#121F57 #572812 #415712
monochromatic
#050919 #080D24 #121F57 #1C318A #2743BC

Accessibility & contrast

On white

15.45
#121F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121F57
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F57#FFFFFF#000000##FFFFFF
##121F571.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121f57;
/* rgb */ color: rgb(18, 31, 87);
/* oklch */ color: oklch(26.8% 0.102 268.5);
Tailwind
colors: {
  custom: {
    50: '#5c5a87',
    500: '#121f57',
    950: '#000000',
  },
}
SCSS
$custom: #121f57;
$custom-light: #5c5a87;
$custom-dark: #000000;
JSON
{
  "hex": "#121f57",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 87
  },
  "hsl": {
    "h": 228.696,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26839,
    "c": 0.10246,
    "h": 268.5
  },
  "luminance": 0.01797
}

Semantic roles & 50–950 ramp

primary
#121F57
secondary
#907F35
accent
#C93FE9
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121F57

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

Preview Lab → · Contrast checker → · Palette generator →

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