#122565#122565

#122565 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.5% C 0.115 H 266.5°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#122565
RGBrgb(18, 37, 101)
HSLhsl(226, 70%, 23%)
HSVhsv(226, 82%, 40%)
CMYKcmyk(82.2%, 63.4%, 0%, 60.4%)
CIE-LABlab(17.42, 18.40, -39.84)
CIE-LCHlch(17.42, 43.88, 294.79°)
OKLaboklab(29.5% -0.0071 -0.1151)
OKLCHoklch(29.5% 0.115 266.5)
XYZxyz(3.2592, 2.3909, 12.5991)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122565 #655212
analogous
#124E65 #122565 #281265
triadic
#122565 #651225 #256512
tetradic
#122565 #65124E #655212 #126528
square
#122565 #65124E #655212 #126528
split-complementary
#122565 #652812 #4E6512
monochromatic
#050A1A #091231 #122565 #1B3899 #254BCD

Accessibility & contrast

On white

14.21
#122565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#122565 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122565
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122565#FFFFFF#000000##FFFFFF
##1225651.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F67
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#003541
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122565;
/* rgb */ color: rgb(18, 37, 101);
/* oklch */ color: oklch(29.5% 0.115 266.5);
Tailwind
colors: {
  custom: {
    50: '#5f5f92',
    500: '#122565',
    950: '#000000',
  },
}
SCSS
$custom: #122565;
$custom-light: #5f5f92;
$custom-dark: #000000;
JSON
{
  "hex": "#122565",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 101
  },
  "hsl": {
    "h": 226.265,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29502,
    "c": 0.11535,
    "h": 266.5
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#122565
secondary
#9D8536
accent
#C43BED
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#05040D
muted
#79797E

Preview Lab

Preview with #122565

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

Preview Lab → · Contrast checker → · Palette generator →

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