#122276#122276

#122276 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.143 H 267.7°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#122276
RGBrgb(18, 34, 118)
HSLhsl(230, 74%, 27%)
HSVhsv(230, 85%, 46%)
CMYKcmyk(84.7%, 71.2%, 0%, 53.7%)
CIE-LABlab(18.28, 27.47, -49.47)
CIE-LCHlch(18.28, 56.59, 299.04°)
OKLaboklab(30.65% -0.0059 -0.1433)
OKLCHoklch(30.65% 0.143 267.7)
XYZxyz(4.0904, 2.5802, 17.4185)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122276 #766612
analogous
#125476 #122276 #341276
triadic
#122276 #761222 #227612
tetradic
#122276 #761254 #766612 #127634
square
#122276 #761254 #766612 #127634
split-complementary
#122276 #763412 #547612
monochromatic
#04081B #0A1341 #122276 #1A31AB #2542DE

Accessibility & contrast

On white

13.85
#122276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#122276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122276
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122276#FFFFFF#000000##FFFFFF
##1222761.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #122276;
/* rgb */ color: rgb(18, 34, 118);
/* oklch */ color: oklch(30.6% 0.143 267.7);
Tailwind
colors: {
  custom: {
    50: '#645d9e',
    500: '#122276',
    950: '#000000',
  },
}
SCSS
$custom: #122276;
$custom-light: #645d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#122276",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 230.4,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30647,
    "c": 0.14345,
    "h": 267.7
  },
  "luminance": 0.02581
}

Semantic roles & 50–950 ramp

primary
#122276
secondary
#AD9A37
accent
#D338F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #122276

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

Preview Lab → · Contrast checker → · Palette generator →

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