#122862#122862

#122862 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.9% C 0.107 H 264.9°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#122862
RGBrgb(18, 40, 98)
HSLhsl(224, 69%, 23%)
HSVhsv(224, 82%, 38%)
CMYKcmyk(81.6%, 59.2%, 0%, 61.6%)
CIE-LABlab(18.04, 14.92, -36.85)
CIE-LCHlch(18.04, 39.75, 292.04°)
OKLaboklab(29.89% -0.0096 -0.1063)
OKLCHoklch(29.89% 0.107 264.9)
XYZxyz(3.2121, 2.5277, 11.8715)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122862 #624C12
analogous
#125062 #122862 #241262
triadic
#122862 #621228 #286212
tetradic
#122862 #621250 #624C12 #126224
square
#122862 #621250 #624C12 #126224
split-complementary
#122862 #622412 #506212
monochromatic
#050B1A #09132E #122862 #1B3D96 #2552C9

Accessibility & contrast

On white

13.95
#122862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#122862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122862
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122862#FFFFFF#000000##FFFFFF
##1228621.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#002961
Tritanopia (blue-blind)
#003640
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122862;
/* rgb */ color: rgb(18, 40, 98);
/* oklch */ color: oklch(29.9% 0.107 264.9);
Tailwind
colors: {
  custom: {
    50: '#5e618f',
    500: '#122862',
    950: '#000000',
  },
}
SCSS
$custom: #122862;
$custom-light: #5e618f;
$custom-dark: #000000;
JSON
{
  "hex": "#122862",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 98
  },
  "hsl": {
    "h": 223.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29888,
    "c": 0.10672,
    "h": 264.9
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#122862
secondary
#9A7E36
accent
#BB3CEC
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #122862

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

Preview Lab → · Contrast checker → · Palette generator →

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