#122272#122272

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

Color values

HEX#122272
RGBrgb(18, 34, 114)
HSLhsl(230, 73%, 26%)
HSVhsv(230, 84%, 45%)
CMYKcmyk(84.2%, 70.2%, 0%, 55.3%)
CIE-LABlab(17.86, 25.88, -47.58)
CIE-LCHlch(17.86, 54.17, 298.54°)
OKLaboklab(30.22% -0.0056 -0.1378)
OKLCHoklch(30.22% 0.138 267.7)
XYZxyz(3.8577, 2.4871, 16.1931)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122272 #726212
analogous
#125272 #122272 #321272
triadic
#122272 #721222 #227212
tetradic
#122272 #721252 #726212 #127232
square
#122272 #721252 #726212 #127232
split-complementary
#122272 #723212 #527212
monochromatic
#04081A #0A123D #122272 #1A32A7 #2342DC

Accessibility & contrast

On white

14.02
#122272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122272
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122272#FFFFFF#000000##FFFFFF
##1222721.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122272;
/* rgb */ color: rgb(18, 34, 114);
/* oklch */ color: oklch(30.2% 0.138 267.7);
Tailwind
colors: {
  custom: {
    50: '#635d9b',
    500: '#122272',
    950: '#000000',
  },
}
SCSS
$custom: #122272;
$custom-light: #635d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#122272",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 230,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30217,
    "c": 0.13793,
    "h": 267.7
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#122272
secondary
#A99637
accent
#D138EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #122272

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

Preview Lab → · Contrast checker → · Palette generator →

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