#122874#122874

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

Color values

HEX#122874
RGBrgb(18, 40, 116)
HSLhsl(227, 73%, 26%)
HSVhsv(227, 84%, 45%)
CMYKcmyk(84.5%, 65.5%, 0%, 54.5%)
CIE-LABlab(19.67, 22.47, -45.91)
CIE-LCHlch(19.67, 51.11, 296.08°)
OKLaboklab(31.61% -0.009 -0.1329)
OKLCHoklch(31.61% 0.133 266.1)
XYZxyz(4.1595, 2.9066, 16.8614)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122874 #745E12
analogous
#125974 #122874 #2D1274
triadic
#122874 #741228 #287412
tetradic
#122874 #741259 #745E12 #12742D
square
#122874 #741259 #745E12 #12742D
split-complementary
#122874 #742D12 #597412
monochromatic
#04091A #0A163F #122874 #1A3AA9 #234DDD

Accessibility & contrast

On white

13.28
#122874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122874
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122874#FFFFFF#000000##FFFFFF
##1228741.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #122874;
/* rgb */ color: rgb(18, 40, 116);
/* oklch */ color: oklch(31.6% 0.133 266.1);
Tailwind
colors: {
  custom: {
    50: '#63619d',
    500: '#122874',
    950: '#000000',
  },
}
SCSS
$custom: #122874;
$custom-light: #63619d;
$custom-dark: #000000;
JSON
{
  "hex": "#122874",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 226.531,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31605,
    "c": 0.13318,
    "h": 266.1
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#122874
secondary
#AB9137
accent
#C738F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122874

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

Preview Lab → · Contrast checker → · Palette generator →

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