#122974#122974

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

Color values

HEX#122974
RGBrgb(18, 41, 116)
HSLhsl(226, 73%, 26%)
HSVhsv(226, 84%, 45%)
CMYKcmyk(84.5%, 64.7%, 0%, 54.5%)
CIE-LABlab(19.94, 21.75, -45.45)
CIE-LCHlch(19.94, 50.39, 295.58°)
OKLaboklab(31.81% -0.0096 -0.1315)
OKLCHoklch(31.81% 0.132 265.8)
XYZxyz(4.1937, 2.9749, 16.8728)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122974 #745D12
analogous
#125A74 #122974 #2C1274
triadic
#122974 #741229 #297412
tetradic
#122974 #74125A #745D12 #12742C
square
#122974 #74125A #745D12 #12742C
split-complementary
#122974 #742C12 #5A7412
monochromatic
#04091A #0A163F #122974 #1A3CA9 #234FDD

Accessibility & contrast

On white

13.17
#122974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#122974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122974
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122974#FFFFFF#000000##FFFFFF
##1229741.0013.171.6013.17
#FFFFFF13.171.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #122974;
/* rgb */ color: rgb(18, 41, 116);
/* oklch */ color: oklch(31.8% 0.132 265.8);
Tailwind
colors: {
  custom: {
    50: '#63629d',
    500: '#122974',
    950: '#000000',
  },
}
SCSS
$custom: #122974;
$custom-light: #63629d;
$custom-dark: #000000;
JSON
{
  "hex": "#122974",
  "rgb": {
    "r": 18,
    "g": 41,
    "b": 116
  },
  "hsl": {
    "h": 225.918,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3181,
    "c": 0.13187,
    "h": 265.8
  },
  "luminance": 0.02975
}

Semantic roles & 50–950 ramp

primary
#122974
secondary
#AB9037
accent
#C538F0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122974

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

Preview Lab → · Contrast checker → · Palette generator →

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