#121F47#121F47

#121F47 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.077 H 267.2°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#121F47
RGBrgb(18, 31, 71)
HSLhsl(225, 60%, 17%)
HSVhsv(225, 75%, 28%)
CMYKcmyk(74.6%, 56.3%, 0%, 72.2%)
CIE-LABlab(13.00, 10.11, -26.78)
CIE-LCHlch(13.00, 28.63, 290.69°)
OKLaboklab(25.37% -0.0037 -0.0768)
OKLCHoklch(25.37% 0.077 267.2)
XYZxyz(1.8764, 1.5633, 6.1629)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F47 #473A12
analogous
#123A47 #121F47 #1F1247
triadic
#121F47 #47121F #1F4712
tetradic
#121F47 #47123A #473A12 #12471F
square
#121F47 #47123A #473A12 #12471F
split-complementary
#121F47 #471F12 #3A4712
monochromatic
#060B18 #060B18 #121F47 #1E3478 #2B4AA9

Accessibility & contrast

On white

16.00
#121F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121F47
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F47#FFFFFF#000000##FFFFFF
##121F471.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082448
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#00282F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #121f47;
/* rgb */ color: rgb(18, 31, 71);
/* oklch */ color: oklch(25.4% 0.077 267.2);
Tailwind
colors: {
  custom: {
    50: '#575a7a',
    500: '#121f47',
    950: '#000000',
  },
}
SCSS
$custom: #121f47;
$custom-light: #575a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#121f47",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 71
  },
  "hsl": {
    "h": 225.283,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25371,
    "c": 0.07692,
    "h": 267.2
  },
  "luminance": 0.01564
}

Semantic roles & 50–950 ramp

primary
#121F47
secondary
#806E35
accent
#BC45E3
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #121F47

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

Preview Lab → · Contrast checker → · Palette generator →

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