#122266#122266

#122266 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.0% C 0.121 H 267.6°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#122266
RGBrgb(18, 34, 102)
HSLhsl(229, 70%, 24%)
HSVhsv(229, 82%, 40%)
CMYKcmyk(82.4%, 66.7%, 0%, 60%)
CIE-LABlab(16.66, 21.00, -41.74)
CIE-LCHlch(16.66, 46.72, 296.71°)
OKLaboklab(28.97% -0.005 -0.1207)
OKLCHoklch(28.97% 0.121 267.6)
XYZxyz(3.2189, 2.2316, 12.8289)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122266 #665612
analogous
#124C66 #122266 #2C1266
triadic
#122266 #661222 #226612
tetradic
#122266 #66124C #665612 #12662C
square
#122266 #66124C #665612 #12662C
split-complementary
#122266 #662C12 #4C6612
monochromatic
#05091A #091132 #122266 #1B339A #2445CE

Accessibility & contrast

On white

14.52
#122266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#122266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122266
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122266#FFFFFF#000000##FFFFFF
##1222661.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#003440
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #122266;
/* rgb */ color: rgb(18, 34, 102);
/* oklch */ color: oklch(29.0% 0.121 267.6);
Tailwind
colors: {
  custom: {
    50: '#605c92',
    500: '#122266',
    950: '#000000',
  },
}
SCSS
$custom: #122266;
$custom-light: #605c92;
$custom-dark: #000000;
JSON
{
  "hex": "#122266",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 102
  },
  "hsl": {
    "h": 228.571,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28967,
    "c": 0.12083,
    "h": 267.6
  },
  "luminance": 0.02232
}

Semantic roles & 50–950 ramp

primary
#122266
secondary
#9E8A36
accent
#CB3BED
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#05040D
muted
#79797E

Preview Lab

Preview with #122266

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

Preview Lab → · Contrast checker → · Palette generator →

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