#121F4F#121F4F

#121F4F is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.1% C 0.090 H 268.1°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#121F4F
RGBrgb(18, 31, 79)
HSLhsl(227, 63%, 19%)
HSVhsv(227, 77%, 31%)
CMYKcmyk(77.2%, 60.8%, 0%, 69%)
CIE-LABlab(13.67, 13.53, -31.21)
CIE-LCHlch(13.67, 34.02, 293.44°)
OKLaboklab(26.08% -0.003 -0.0899)
OKLCHoklch(26.08% 0.09 268.1)
XYZxyz(2.1502, 1.6729, 7.6052)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F4F #4F4212
analogous
#123E4F #121F4F #24124F
triadic
#121F4F #4F121F #1F4F12
tetradic
#121F4F #4F123E #4F4212 #124F24
square
#121F4F #4F123E #4F4212 #124F24
split-complementary
#121F4F #4F2412 #3E4F12
monochromatic
#060A19 #070B1D #121F4F #1D3381 #2946B3

Accessibility & contrast

On white

15.74
#121F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#121F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F4F
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F4F#FFFFFF#000000##FFFFFF
##121F4F1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#002B33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121f4f;
/* rgb */ color: rgb(18, 31, 79);
/* oklch */ color: oklch(26.1% 0.090 268.1);
Tailwind
colors: {
  custom: {
    50: '#595a81',
    500: '#121f4f',
    950: '#000000',
  },
}
SCSS
$custom: #121f4f;
$custom-light: #595a81;
$custom-dark: #000000;
JSON
{
  "hex": "#121f4f",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 227.213,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26081,
    "c": 0.08993,
    "h": 268.1
  },
  "luminance": 0.01673
}

Semantic roles & 50–950 ramp

primary
#121F4F
secondary
#887635
accent
#C342E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #121F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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