#122864#122864

#122864 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.1% C 0.110 H 265.1°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#122864
RGBrgb(18, 40, 100)
HSLhsl(224, 69%, 23%)
HSVhsv(224, 82%, 39%)
CMYKcmyk(82%, 60%, 0%, 60.8%)
CIE-LABlab(18.21, 15.77, -37.89)
CIE-LCHlch(18.21, 41.04, 292.60°)
OKLaboklab(30.07% -0.0094 -0.1093)
OKLCHoklch(30.07% 0.11 265.1)
XYZxyz(3.3077, 2.5659, 12.3751)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122864 #644E12
analogous
#125164 #122864 #251264
triadic
#122864 #641228 #286412
tetradic
#122864 #641251 #644E12 #126425
square
#122864 #641251 #644E12 #126425
split-complementary
#122864 #642512 #516412
monochromatic
#050A1A #091330 #122864 #1B3D98 #2551CC

Accessibility & contrast

On white

13.88
#122864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122864
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122864#FFFFFF#000000##FFFFFF
##1228641.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003066
Deuteranopia (green-blind)
#002963
Tritanopia (blue-blind)
#003741
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122864;
/* rgb */ color: rgb(18, 40, 100);
/* oklch */ color: oklch(30.1% 0.110 265.1);
Tailwind
colors: {
  custom: {
    50: '#5f6191',
    500: '#122864',
    950: '#000000',
  },
}
SCSS
$custom: #122864;
$custom-light: #5f6191;
$custom-dark: #000000;
JSON
{
  "hex": "#122864",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 100
  },
  "hsl": {
    "h": 223.902,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3007,
    "c": 0.10975,
    "h": 265.1
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#122864
secondary
#9C8136
accent
#BD3BEC
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05050D
muted
#79797D

Preview Lab

Preview with #122864

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

Preview Lab → · Contrast checker → · Palette generator →

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