#122472#122472

#122472 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.135 H 267.2°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#122472
RGBrgb(18, 36, 114)
HSLhsl(229, 73%, 26%)
HSVhsv(229, 84%, 45%)
CMYKcmyk(84.2%, 68.4%, 0%, 55.3%)
CIE-LABlab(18.39, 24.48, -46.72)
CIE-LCHlch(18.39, 52.75, 297.66°)
OKLaboklab(30.6% -0.0067 -0.1353)
OKLCHoklch(30.6% 0.135 267.2)
XYZxyz(3.9165, 2.6048, 16.2127)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122472 #726012
analogous
#125472 #122472 #301272
triadic
#122472 #721224 #247212
tetradic
#122472 #721254 #726012 #127230
square
#122472 #721254 #726012 #127230
split-complementary
#122472 #723012 #547212
monochromatic
#04081A #0A133D #122472 #1A35A7 #2345DC

Accessibility & contrast

On white

13.81
#122472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#122472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122472
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122472#FFFFFF#000000##FFFFFF
##1224721.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #122472;
/* rgb */ color: rgb(18, 36, 114);
/* oklch */ color: oklch(30.6% 0.135 267.2);
Tailwind
colors: {
  custom: {
    50: '#635e9b',
    500: '#122472',
    950: '#000000',
  },
}
SCSS
$custom: #122472;
$custom-light: #635e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#122472",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 114
  },
  "hsl": {
    "h": 228.75,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30602,
    "c": 0.13544,
    "h": 267.2
  },
  "luminance": 0.02605
}

Semantic roles & 50–950 ramp

primary
#122472
secondary
#A99437
accent
#CD38EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #122472

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

Preview Lab → · Contrast checker → · Palette generator →

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