#122671#122671

#122671 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.9% C 0.131 H 266.6°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#122671
RGBrgb(18, 38, 113)
HSLhsl(227, 73%, 26%)
HSVhsv(227, 84%, 44%)
CMYKcmyk(84.1%, 66.4%, 0%, 55.7%)
CIE-LABlab(18.83, 22.66, -45.35)
CIE-LCHlch(18.83, 50.70, 296.55°)
OKLaboklab(30.9% -0.0078 -0.1312)
OKLCHoklch(30.9% 0.131 266.6)
XYZxyz(3.9222, 2.7066, 15.9353)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122671 #715D12
analogous
#125571 #122671 #2D1271
triadic
#122671 #711226 #267112
tetradic
#122671 #711255 #715D12 #12712D
square
#122671 #711255 #715D12 #12712D
split-complementary
#122671 #712D12 #557112
monochromatic
#04091A #0A143C #122671 #1A38A6 #234ADB

Accessibility & contrast

On white

13.62
#122671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#122671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122671
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122671#FFFFFF#000000##FFFFFF
##1226711.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #122671;
/* rgb */ color: rgb(18, 38, 113);
/* oklch */ color: oklch(30.9% 0.131 266.6);
Tailwind
colors: {
  custom: {
    50: '#63609b',
    500: '#122671',
    950: '#000000',
  },
}
SCSS
$custom: #122671;
$custom-light: #63609b;
$custom-dark: #000000;
JSON
{
  "hex": "#122671",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 113
  },
  "hsl": {
    "h": 227.368,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30897,
    "c": 0.13148,
    "h": 266.6
  },
  "luminance": 0.02707
}

Semantic roles & 50–950 ramp

primary
#122671
secondary
#A89037
accent
#C939EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #122671

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

Preview Lab → · Contrast checker → · Palette generator →

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