#122247#122247

#122247 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.1% C 0.072 H 264.4°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#122247
RGBrgb(18, 34, 71)
HSLhsl(222, 60%, 17%)
HSVhsv(222, 75%, 28%)
CMYKcmyk(74.6%, 52.1%, 0%, 72.2%)
CIE-LABlab(13.99, 7.82, -25.20)
CIE-LCHlch(13.99, 26.39, 287.25°)
OKLaboklab(26.12% -0.0071 -0.0721)
OKLCHoklch(26.12% 0.072 264.4)
XYZxyz(1.9584, 1.7274, 6.1902)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122247 #473712
analogous
#123D47 #122247 #1D1247
triadic
#122247 #471222 #224712
tetradic
#122247 #47123D #473712 #12471D
square
#122247 #47123D #473712 #12471D
split-complementary
#122247 #471D12 #3D4712
monochromatic
#060C18 #060C18 #122247 #1E3978 #2B51A9

Accessibility & contrast

On white

15.61
#122247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#122247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122247
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122247#FFFFFF#000000##FFFFFF
##1222471.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2648
Deuteranopia (green-blind)
#052146
Tritanopia (blue-blind)
#002B31
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #122247;
/* rgb */ color: rgb(18, 34, 71);
/* oklch */ color: oklch(26.1% 0.072 264.4);
Tailwind
colors: {
  custom: {
    50: '#575c7a',
    500: '#122247',
    950: '#000000',
  },
}
SCSS
$custom: #122247;
$custom-light: #575c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#122247",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 71
  },
  "hsl": {
    "h": 221.887,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26119,
    "c": 0.07249,
    "h": 264.4
  },
  "luminance": 0.01728
}

Semantic roles & 50–950 ramp

primary
#122247
secondary
#806935
accent
#B345E3
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #122247

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

Preview Lab → · Contrast checker → · Palette generator →

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