#121F46#121F46

#121F46 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.3% C 0.075 H 267.0°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#121F46
RGBrgb(18, 31, 70)
HSLhsl(225, 59%, 17%)
HSVhsv(225, 74%, 27%)
CMYKcmyk(74.3%, 55.7%, 0%, 72.5%)
CIE-LABlab(12.93, 9.68, -26.21)
CIE-LCHlch(12.93, 27.95, 290.28°)
OKLaboklab(25.29% -0.0039 -0.0752)
OKLCHoklch(25.29% 0.075 267)
XYZxyz(1.8446, 1.5506, 5.9953)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F46 #463912
analogous
#123946 #121F46 #1F1246
triadic
#121F46 #46121F #1F4612
tetradic
#121F46 #461239 #463912 #12461F
square
#121F46 #461239 #463912 #12461F
split-complementary
#121F46 #461F12 #394612
monochromatic
#060B18 #060B18 #121F46 #1F3577 #2B4AA7

Accessibility & contrast

On white

16.03
#121F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#121F46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F46
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F46#FFFFFF#000000##FFFFFF
##121F461.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092447
Deuteranopia (green-blind)
#001F45
Tritanopia (blue-blind)
#00282F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #121f46;
/* rgb */ color: rgb(18, 31, 70);
/* oklch */ color: oklch(25.3% 0.075 267.0);
Tailwind
colors: {
  custom: {
    50: '#575a7a',
    500: '#121f46',
    950: '#000000',
  },
}
SCSS
$custom: #121f46;
$custom-light: #575a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#121f46",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 70
  },
  "hsl": {
    "h": 225,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25285,
    "c": 0.07527,
    "h": 267
  },
  "luminance": 0.01551
}

Semantic roles & 50–950 ramp

primary
#121F46
secondary
#7F6C35
accent
#BB46E2
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #121F46

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

Preview Lab → · Contrast checker → · Palette generator →

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