#121F4A#121F4A

#121F4A is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.082 H 267.6°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#121F4A
RGBrgb(18, 31, 74)
HSLhsl(226, 61%, 18%)
HSVhsv(226, 76%, 29%)
CMYKcmyk(75.7%, 58.1%, 0%, 71%)
CIE-LABlab(13.25, 11.40, -28.46)
CIE-LCHlch(13.25, 30.66, 291.82°)
OKLaboklab(25.63% -0.0034 -0.0818)
OKLCHoklch(25.63% 0.082 267.6)
XYZxyz(1.9750, 1.6028, 6.6825)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F4A #4A3D12
analogous
#123B4A #121F4A #21124A
triadic
#121F4A #4A121F #1F4A12
tetradic
#121F4A #4A123B #4A3D12 #124A21
square
#121F4A #4A123B #4A3D12 #124A21
split-complementary
#121F4A #4A2112 #3B4A12
monochromatic
#060A19 #060A19 #121F4A #1E347B #2A48AC

Accessibility & contrast

On white

15.90
#121F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#121F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F4A
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F4A#FFFFFF#000000##FFFFFF
##121F4A1.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04254C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #121f4a;
/* rgb */ color: rgb(18, 31, 74);
/* oklch */ color: oklch(25.6% 0.082 267.6);
Tailwind
colors: {
  custom: {
    50: '#585a7d',
    500: '#121f4a',
    950: '#000000',
  },
}
SCSS
$custom: #121f4a;
$custom-light: #585a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#121f4a",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 74
  },
  "hsl": {
    "h": 226.071,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25631,
    "c": 0.08186,
    "h": 267.6
  },
  "luminance": 0.01603
}

Semantic roles & 50–950 ramp

primary
#121F4A
secondary
#837135
accent
#BF44E4
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #121F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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