#122371#122371

#122371 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.135 H 267.4°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#122371
RGBrgb(18, 35, 113)
HSLhsl(229, 73%, 26%)
HSVhsv(229, 84%, 44%)
CMYKcmyk(84.1%, 69%, 0%, 55.7%)
CIE-LABlab(18.02, 24.78, -46.67)
CIE-LCHlch(18.02, 52.85, 297.97°)
OKLaboklab(30.3% -0.0061 -0.1352)
OKLCHoklch(30.3% 0.135 267.4)
XYZxyz(3.8301, 2.5225, 15.9046)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122371 #716012
analogous
#125271 #122371 #301271
triadic
#122371 #711223 #237112
tetradic
#122371 #711252 #716012 #127130
square
#122371 #711252 #716012 #127130
split-complementary
#122371 #713012 #527112
monochromatic
#04081A #0A133C #122371 #1A33A6 #2344DB

Accessibility & contrast

On white

13.96
#122371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#122371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122371
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122371#FFFFFF#000000##FFFFFF
##1223711.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122371;
/* rgb */ color: rgb(18, 35, 113);
/* oklch */ color: oklch(30.3% 0.135 267.4);
Tailwind
colors: {
  custom: {
    50: '#635d9b',
    500: '#122371',
    950: '#000000',
  },
}
SCSS
$custom: #122371;
$custom-light: #635d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#122371",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 229.263,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30302,
    "c": 0.1353,
    "h": 267.4
  },
  "luminance": 0.02523
}

Semantic roles & 50–950 ramp

primary
#122371
secondary
#A89437
accent
#CF39EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #122371

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

Preview Lab → · Contrast checker → · Palette generator →

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