#122873#122873

#122873 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.5% C 0.132 H 266.1°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#122873
RGBrgb(18, 40, 115)
HSLhsl(226, 73%, 26%)
HSVhsv(226, 84%, 45%)
CMYKcmyk(84.3%, 65.2%, 0%, 54.9%)
CIE-LABlab(19.57, 22.06, -45.42)
CIE-LCHlch(19.57, 50.49, 295.90°)
OKLaboklab(31.51% -0.009 -0.1314)
OKLCHoklch(31.51% 0.132 266.1)
XYZxyz(4.1017, 2.8835, 16.5567)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122873 #735D12
analogous
#125873 #122873 #2C1273
triadic
#122873 #731228 #287312
tetradic
#122873 #731258 #735D12 #12732C
square
#122873 #731258 #735D12 #12732C
split-complementary
#122873 #732C12 #587312
monochromatic
#04091A #0A163E #122873 #1A3AA8 #234DDD

Accessibility & contrast

On white

13.32
#122873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#122873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122873
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122873#FFFFFF#000000##FFFFFF
##1228731.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #122873;
/* rgb */ color: rgb(18, 40, 115);
/* oklch */ color: oklch(31.5% 0.132 266.1);
Tailwind
colors: {
  custom: {
    50: '#63619c',
    500: '#122873',
    950: '#000000',
  },
}
SCSS
$custom: #122873;
$custom-light: #63619c;
$custom-dark: #000000;
JSON
{
  "hex": "#122873",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 226.392,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31505,
    "c": 0.13175,
    "h": 266.1
  },
  "luminance": 0.02884
}

Semantic roles & 50–950 ramp

primary
#122873
secondary
#AA9037
accent
#C638F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122873

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

Preview Lab → · Contrast checker → · Palette generator →

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