#122971#122971

#122971 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.5% C 0.128 H 265.7°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#122971
RGBrgb(18, 41, 113)
HSLhsl(225, 73%, 26%)
HSVhsv(225, 84%, 44%)
CMYKcmyk(84.1%, 63.7%, 0%, 55.7%)
CIE-LABlab(19.66, 20.51, -43.98)
CIE-LCHlch(19.66, 48.53, 295.00°)
OKLaboklab(31.52% -0.0096 -0.1272)
OKLCHoklch(31.52% 0.128 265.7)
XYZxyz(4.0220, 2.9063, 15.9686)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122971 #715A12
analogous
#125871 #122971 #2B1271
triadic
#122971 #711229 #297112
tetradic
#122971 #711258 #715A12 #12712B
square
#122971 #711258 #715A12 #12712B
split-complementary
#122971 #712B12 #587112
monochromatic
#040A1A #0A163C #122971 #1A3CA6 #234FDB

Accessibility & contrast

On white

13.28
#122971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#122971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122971
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122971#FFFFFF#000000##FFFFFF
##1229711.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003C48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #122971;
/* rgb */ color: rgb(18, 41, 113);
/* oklch */ color: oklch(31.5% 0.128 265.7);
Tailwind
colors: {
  custom: {
    50: '#62629b',
    500: '#122971',
    950: '#000000',
  },
}
SCSS
$custom: #122971;
$custom-light: #62629b;
$custom-dark: #000000;
JSON
{
  "hex": "#122971",
  "rgb": {
    "r": 18,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 225.474,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31517,
    "c": 0.12756,
    "h": 265.7
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#122971
secondary
#A88D37
accent
#C339EF
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122971

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

Preview Lab → · Contrast checker → · Palette generator →

#122971 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva