#121F5C#121F5C

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

Color values

HEX#121F5C
RGBrgb(18, 31, 92)
HSLhsl(229, 67%, 22%)
HSVhsv(229, 80%, 36%)
CMYKcmyk(80.4%, 66.3%, 0%, 63.9%)
CIE-LABlab(14.85, 19.03, -38.07)
CIE-LCHlch(14.85, 42.56, 296.56°)
OKLaboklab(27.33% -0.0027 -0.11)
OKLCHoklch(27.33% 0.11 268.6)
XYZxyz(2.6705, 1.8810, 10.3455)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F5C #5C4F12
analogous
#12445C #121F5C #2A125C
triadic
#121F5C #5C121F #1F5C12
tetradic
#121F5C #5C1244 #5C4F12 #125C2A
square
#121F5C #5C1244 #5C4F12 #125C2A
split-complementary
#121F5C #5C2A12 #445C12
monochromatic
#05091A #080E29 #121F5C #1C308F #2641C2

Accessibility & contrast

On white

15.26
#121F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#121F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F5C
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F5C#FFFFFF#000000##FFFFFF
##121F5C1.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #121f5c;
/* rgb */ color: rgb(18, 31, 92);
/* oklch */ color: oklch(27.3% 0.110 268.6);
Tailwind
colors: {
  custom: {
    50: '#5d5a8b',
    500: '#121f5c',
    950: '#000000',
  },
}
SCSS
$custom: #121f5c;
$custom-light: #5d5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#121f5c",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 229.459,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27333,
    "c": 0.11005,
    "h": 268.6
  },
  "luminance": 0.01881
}

Semantic roles & 50–950 ramp

primary
#121F5C
secondary
#948435
accent
#CC3EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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