#122865#122865

#122865 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.2% C 0.111 H 265.2°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#122865
RGBrgb(18, 40, 101)
HSLhsl(224, 70%, 23%)
HSVhsv(224, 82%, 40%)
CMYKcmyk(82.2%, 60.4%, 0%, 60.4%)
CIE-LABlab(18.30, 16.19, -38.40)
CIE-LCHlch(18.30, 41.68, 292.86°)
OKLaboklab(30.16% -0.0094 -0.1108)
OKLCHoklch(30.16% 0.111 265.2)
XYZxyz(3.3564, 2.5854, 12.6315)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122865 #654F12
analogous
#125165 #122865 #251265
triadic
#122865 #651228 #286512
tetradic
#122865 #651251 #654F12 #126525
square
#122865 #651251 #654F12 #126525
split-complementary
#122865 #652512 #516512
monochromatic
#050A1A #091331 #122865 #1B3D99 #2551CD

Accessibility & contrast

On white

13.84
#122865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122865
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122865#FFFFFF#000000##FFFFFF
##1228651.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003167
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#003742
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #122865;
/* rgb */ color: rgb(18, 40, 101);
/* oklch */ color: oklch(30.2% 0.111 265.2);
Tailwind
colors: {
  custom: {
    50: '#5f6191',
    500: '#122865',
    950: '#000000',
  },
}
SCSS
$custom: #122865;
$custom-light: #5f6191;
$custom-dark: #000000;
JSON
{
  "hex": "#122865",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 101
  },
  "hsl": {
    "h": 224.096,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30162,
    "c": 0.11124,
    "h": 265.2
  },
  "luminance": 0.02586
}

Semantic roles & 50–950 ramp

primary
#122865
secondary
#9D8236
accent
#BE3BED
background
#F5F5F9
surface
#EAE9F1
border
#C6C5CB
text
#05050D
muted
#79797E

Preview Lab

Preview with #122865

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

Preview Lab → · Contrast checker → · Palette generator →

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