#122952#122952

#122952 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.080 H 261.0°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#122952
RGBrgb(18, 41, 82)
HSLhsl(218, 64%, 20%)
HSVhsv(218, 78%, 32%)
CMYKcmyk(78%, 50%, 0%, 67.8%)
CIE-LABlab(17.10, 7.30, -27.71)
CIE-LCHlch(17.10, 28.66, 284.75°)
OKLaboklab(28.77% -0.0126 -0.0794)
OKLCHoklch(28.77% 0.08 261)
XYZxyz(2.5648, 2.3234, 8.2943)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122952 #523B12
analogous
#124952 #122952 #1B1252
triadic
#122952 #521229 #295212
tetradic
#122952 #521249 #523B12 #12521B
square
#122952 #521249 #523B12 #12521B
split-complementary
#122952 #521B12 #495212
monochromatic
#060D19 #071020 #122952 #1D4284 #285BB6

Accessibility & contrast

On white

14.34
#122952 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#122952 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122952
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122952#FFFFFF#000000##FFFFFF
##1229521.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142D54
Deuteranopia (green-blind)
#072751
Tritanopia (blue-blind)
#003339
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #122952;
/* rgb */ color: rgb(18, 41, 82);
/* oklch */ color: oklch(28.8% 0.080 261.0);
Tailwind
colors: {
  custom: {
    50: '#5a6283',
    500: '#122952',
    950: '#000000',
  },
}
SCSS
$custom: #122952;
$custom-light: #5a6283;
$custom-dark: #000000;
JSON
{
  "hex": "#122952",
  "rgb": {
    "r": 18,
    "g": 41,
    "b": 82
  },
  "hsl": {
    "h": 218.438,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28769,
    "c": 0.08038,
    "h": 261
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#122952
secondary
#8B6C35
accent
#AB41E7
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #122952

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

Preview Lab → · Contrast checker → · Palette generator →

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