#121F5F#121F5F

#121F5F is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.6% C 0.115 H 268.6°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#121F5F
RGBrgb(18, 31, 95)
HSLhsl(230, 68%, 22%)
HSVhsv(230, 81%, 37%)
CMYKcmyk(81.1%, 67.4%, 0%, 62.7%)
CIE-LABlab(15.14, 20.28, -39.60)
CIE-LCHlch(15.14, 44.49, 297.12°)
OKLaboklab(27.64% -0.0028 -0.1145)
OKLCHoklch(27.64% 0.115 268.6)
XYZxyz(2.8043, 1.9345, 11.0499)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F5F #5F5212
analogous
#12465F #121F5F #2C125F
triadic
#121F5F #5F121F #1F5F12
tetradic
#121F5F #5F1246 #5F5212 #125F2C
square
#121F5F #5F1246 #5F5212 #125F2C
split-complementary
#121F5F #5F2C12 #465F12
monochromatic
#05081A #080E2C #121F5F #1C3092 #2541C6

Accessibility & contrast

On white

15.14
#121F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#121F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F5F
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F5F#FFFFFF#000000##FFFFFF
##121F5F1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#00303B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #121f5f;
/* rgb */ color: rgb(18, 31, 95);
/* oklch */ color: oklch(27.6% 0.115 268.6);
Tailwind
colors: {
  custom: {
    50: '#5e5a8d',
    500: '#121f5f',
    950: '#000000',
  },
}
SCSS
$custom: #121f5f;
$custom-light: #5e5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#121f5f",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 229.87,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27636,
    "c": 0.11453,
    "h": 268.6
  },
  "luminance": 0.01935
}

Semantic roles & 50–950 ramp

primary
#121F5F
secondary
#978736
accent
#CE3DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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