#122876#122876

#122876 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.136 H 266.2°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#122876
RGBrgb(18, 40, 118)
HSLhsl(227, 74%, 27%)
HSVhsv(227, 85%, 46%)
CMYKcmyk(84.7%, 66.1%, 0%, 53.7%)
CIE-LABlab(19.86, 23.29, -46.88)
CIE-LCHlch(19.86, 52.34, 296.42°)
OKLaboklab(31.81% -0.009 -0.1357)
OKLCHoklch(31.81% 0.136 266.2)
XYZxyz(4.2771, 2.9537, 17.4807)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122876 #766012
analogous
#125A76 #122876 #2E1276
triadic
#122876 #761228 #287612
tetradic
#122876 #76125A #766012 #12762E
square
#122876 #76125A #766012 #12762E
split-complementary
#122876 #762E12 #5A7612
monochromatic
#04091B #0A1641 #122876 #1A3AAB #254DDE

Accessibility & contrast

On white

13.20
#122876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#122876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122876
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122876#FFFFFF#000000##FFFFFF
##1228761.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #122876;
/* rgb */ color: rgb(18, 40, 118);
/* oklch */ color: oklch(31.8% 0.136 266.2);
Tailwind
colors: {
  custom: {
    50: '#64619e',
    500: '#122876',
    950: '#000000',
  },
}
SCSS
$custom: #122876;
$custom-light: #64619e;
$custom-dark: #000000;
JSON
{
  "hex": "#122876",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 118
  },
  "hsl": {
    "h": 226.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31805,
    "c": 0.136,
    "h": 266.2
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#122876
secondary
#AD9337
accent
#C838F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122876

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

Preview Lab → · Contrast checker → · Palette generator →

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