#122954#122954

#122954 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 28.9% C 0.084 H 261.6°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#122954
RGBrgb(18, 41, 84)
HSLhsl(219, 65%, 20%)
HSVhsv(219, 79%, 33%)
CMYKcmyk(78.6%, 51.2%, 0%, 67.1%)
CIE-LABlab(17.25, 8.16, -28.82)
CIE-LCHlch(17.25, 29.96, 285.81°)
OKLaboklab(28.93% -0.0122 -0.0826)
OKLCHoklch(28.93% 0.084 261.6)
XYZxyz(2.6421, 2.3543, 8.7010)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122954 #543D12
analogous
#124A54 #122954 #1C1254
triadic
#122954 #541229 #295412
tetradic
#122954 #54124A #543D12 #12541C
square
#122954 #54124A #543D12 #12541C
split-complementary
#122954 #541C12 #4A5412
monochromatic
#050C19 #071022 #122954 #1D4286 #285AB9

Accessibility & contrast

On white

14.28
#122954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#122954 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122954
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122954#FFFFFF#000000##FFFFFF
##1229541.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122E56
Deuteranopia (green-blind)
#042853
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #122954;
/* rgb */ color: rgb(18, 41, 84);
/* oklch */ color: oklch(28.9% 0.084 261.6);
Tailwind
colors: {
  custom: {
    50: '#5a6284',
    500: '#122954',
    950: '#000000',
  },
}
SCSS
$custom: #122954;
$custom-light: #5a6284;
$custom-dark: #000000;
JSON
{
  "hex": "#122954",
  "rgb": {
    "r": 18,
    "g": 41,
    "b": 84
  },
  "hsl": {
    "h": 219.091,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.28929,
    "c": 0.08355,
    "h": 261.6
  },
  "luminance": 0.02355
}

Semantic roles & 50–950 ramp

primary
#122954
secondary
#8D6E35
accent
#AD40E8
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #122954

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

Preview Lab → · Contrast checker → · Palette generator →

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