#121F5D#121F5D

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

Color values

HEX#121F5D
RGBrgb(18, 31, 93)
HSLhsl(230, 68%, 22%)
HSVhsv(230, 81%, 36%)
CMYKcmyk(80.6%, 66.7%, 0%, 63.5%)
CIE-LABlab(14.95, 19.45, -38.58)
CIE-LCHlch(14.95, 43.21, 296.75°)
OKLaboklab(27.43% -0.0027 -0.1115)
OKLCHoklch(27.43% 0.112 268.6)
XYZxyz(2.7145, 1.8986, 10.5772)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F5D #5D5012
analogous
#12455D #121F5D #2B125D
triadic
#121F5D #5D121F #1F5D12
tetradic
#121F5D #5D1245 #5D5012 #125D2B
square
#121F5D #5D1245 #5D5012 #125D2B
split-complementary
#121F5D #5D2B12 #455D12
monochromatic
#05091A #080E2A #121F5D #1C3090 #2641C4

Accessibility & contrast

On white

15.22
#121F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121F5D
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F5D#FFFFFF#000000##FFFFFF
##121F5D1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #121f5d;
/* rgb */ color: rgb(18, 31, 93);
/* oklch */ color: oklch(27.4% 0.112 268.6);
Tailwind
colors: {
  custom: {
    50: '#5d5a8c',
    500: '#121f5d',
    950: '#000000',
  },
}
SCSS
$custom: #121f5d;
$custom-light: #5d5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#121f5d",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 93
  },
  "hsl": {
    "h": 229.6,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27434,
    "c": 0.11155,
    "h": 268.6
  },
  "luminance": 0.01899
}

Semantic roles & 50–950 ramp

primary
#121F5D
secondary
#958535
accent
#CC3DEA
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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