#122474#122474

#122474 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.8% C 0.138 H 267.2°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#122474
RGBrgb(18, 36, 116)
HSLhsl(229, 73%, 26%)
HSVhsv(229, 84%, 45%)
CMYKcmyk(84.5%, 69%, 0%, 54.5%)
CIE-LABlab(18.59, 25.29, -47.68)
CIE-LCHlch(18.59, 53.97, 297.94°)
OKLaboklab(30.81% -0.0068 -0.1381)
OKLCHoklch(30.81% 0.138 267.2)
XYZxyz(4.0316, 2.6508, 16.8188)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122474 #746212
analogous
#125574 #122474 #311274
triadic
#122474 #741224 #247412
tetradic
#122474 #741255 #746212 #127431
square
#122474 #741255 #746212 #127431
split-complementary
#122474 #743112 #557412
monochromatic
#04081A #0A143F #122474 #1A34A9 #2346DD

Accessibility & contrast

On white

13.72
#122474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#122474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122474
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122474#FFFFFF#000000##FFFFFF
##1224741.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #122474;
/* rgb */ color: rgb(18, 36, 116);
/* oklch */ color: oklch(30.8% 0.138 267.2);
Tailwind
colors: {
  custom: {
    50: '#645e9d',
    500: '#122474',
    950: '#000000',
  },
}
SCSS
$custom: #122474;
$custom-light: #645e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#122474",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 116
  },
  "hsl": {
    "h": 228.98,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30811,
    "c": 0.13825,
    "h": 267.2
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#122474
secondary
#AB9537
accent
#CE38F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #122474

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

Preview Lab → · Contrast checker → · Palette generator →

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