#122271#122271

#122271 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.1% C 0.137 H 267.7°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#122271
RGBrgb(18, 34, 113)
HSLhsl(230, 73%, 26%)
HSVhsv(230, 84%, 44%)
CMYKcmyk(84.1%, 69.9%, 0%, 55.7%)
CIE-LABlab(17.76, 25.48, -47.11)
CIE-LCHlch(17.76, 53.56, 298.41°)
OKLaboklab(30.11% -0.0055 -0.1364)
OKLCHoklch(30.11% 0.137 267.7)
XYZxyz(3.8011, 2.4645, 15.8949)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122271 #716112
analogous
#125171 #122271 #311271
triadic
#122271 #711222 #227112
tetradic
#122271 #711251 #716112 #127131
square
#122271 #711251 #716112 #127131
split-complementary
#122271 #713112 #517112
monochromatic
#04081A #0A123C #122271 #1A32A6 #2342DB

Accessibility & contrast

On white

14.07
#122271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#122271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122271
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122271#FFFFFF#000000##FFFFFF
##1222711.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122271;
/* rgb */ color: rgb(18, 34, 113);
/* oklch */ color: oklch(30.1% 0.137 267.7);
Tailwind
colors: {
  custom: {
    50: '#635d9b',
    500: '#122271',
    950: '#000000',
  },
}
SCSS
$custom: #122271;
$custom-light: #635d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#122271",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 229.895,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3011,
    "c": 0.13654,
    "h": 267.7
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#122271
secondary
#A89537
accent
#D039EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #122271

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

Preview Lab → · Contrast checker → · Palette generator →

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