#122866#122866

#122866 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.3% C 0.113 H 265.3°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#122866
RGBrgb(18, 40, 102)
HSLhsl(224, 70%, 24%)
HSVhsv(224, 82%, 40%)
CMYKcmyk(82.4%, 60.8%, 0%, 60%)
CIE-LABlab(18.39, 16.62, -38.92)
CIE-LCHlch(18.39, 42.32, 293.12°)
OKLaboklab(30.26% -0.0093 -0.1124)
OKLCHoklch(30.26% 0.113 265.3)
XYZxyz(3.4057, 2.6051, 12.8911)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122866 #665012
analogous
#125266 #122866 #261266
triadic
#122866 #661228 #286612
tetradic
#122866 #661252 #665012 #126626
square
#122866 #661252 #665012 #126626
split-complementary
#122866 #662612 #526612
monochromatic
#050A1A #091432 #122866 #1B3C9A #2451CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##122866#FFFFFF#000000##FFFFFF
##1228661.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)
#003168
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#003842
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #122866;
/* rgb */ color: rgb(18, 40, 102);
/* oklch */ color: oklch(30.3% 0.113 265.3);
Tailwind
colors: {
  custom: {
    50: '#5f6192',
    500: '#122866',
    950: '#000000',
  },
}
SCSS
$custom: #122866;
$custom-light: #5f6192;
$custom-dark: #000000;
JSON
{
  "hex": "#122866",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 102
  },
  "hsl": {
    "h": 224.286,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30255,
    "c": 0.11274,
    "h": 265.3
  },
  "luminance": 0.02605
}

Semantic roles & 50–950 ramp

primary
#122866
secondary
#9E8336
accent
#BE3BED
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#05050D
muted
#7A797E

Preview Lab

Preview with #122866

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

Preview Lab → · Contrast checker → · Palette generator →

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