#122847#122847

#122847 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.7% C 0.064 H 257.3°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#122847
RGBrgb(18, 40, 71)
HSLhsl(215, 60%, 17%)
HSVhsv(215, 75%, 28%)
CMYKcmyk(74.6%, 43.7%, 0%, 72.2%)
CIE-LABlab(16.01, 3.34, -21.97)
CIE-LCHlch(16.01, 22.23, 278.63°)
OKLaboklab(27.68% -0.0141 -0.0625)
OKLCHoklch(27.68% 0.064 257.3)
XYZxyz(2.1452, 2.1009, 6.2525)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122847 #473112
analogous
#124347 #122847 #161247
triadic
#122847 #471228 #284712
tetradic
#122847 #471243 #473112 #124716
square
#122847 #471243 #473112 #124716
split-complementary
#122847 #471612 #434712
monochromatic
#060E18 #060E18 #122847 #1E4478 #2B5FA9

Accessibility & contrast

On white

14.79
#122847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#122847 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122847
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122847#FFFFFF#000000##FFFFFF
##1228471.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2A48
Deuteranopia (green-blind)
#122646
Tritanopia (blue-blind)
#002F34
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #122847;
/* rgb */ color: rgb(18, 40, 71);
/* oklch */ color: oklch(27.7% 0.064 257.3);
Tailwind
colors: {
  custom: {
    50: '#57617a',
    500: '#122847',
    950: '#000000',
  },
}
SCSS
$custom: #122847;
$custom-light: #57617a;
$custom-dark: #000000;
JSON
{
  "hex": "#122847",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 71
  },
  "hsl": {
    "h": 215.094,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2768,
    "c": 0.06412,
    "h": 257.3
  },
  "luminance": 0.02101
}

Semantic roles & 50–950 ramp

primary
#122847
secondary
#806135
accent
#A145E3
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030509
muted
#78797B

Preview Lab

Preview with #122847

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

Preview Lab → · Contrast checker → · Palette generator →

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