#122F76#122F76

#122F76 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.3% C 0.127 H 263.9°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#122F76
RGBrgb(18, 47, 118)
HSLhsl(223, 74%, 27%)
HSVhsv(223, 85%, 46%)
CMYKcmyk(84.7%, 60.2%, 0%, 53.7%)
CIE-LABlab(21.83, 18.28, -43.65)
CIE-LCHlch(21.83, 47.32, 292.72°)
OKLaboklab(33.28% -0.0134 -0.1261)
OKLCHoklch(33.28% 0.127 263.9)
XYZxyz(4.5348, 3.4691, 17.5666)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F76 #765912
analogous
#126176 #122F76 #271276
triadic
#122F76 #76122F #2F7612
tetradic
#122F76 #761261 #765912 #127627
square
#122F76 #761261 #765912 #127627
split-complementary
#122F76 #762712 #617612
monochromatic
#040B1B #0A1A41 #122F76 #1A44AB #255ADE

Accessibility & contrast

On white

12.40
#122F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#122F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F76
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F76#FFFFFF#000000##FFFFFF
##122F761.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003978
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#00414D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #122f76;
/* rgb */ color: rgb(18, 47, 118);
/* oklch */ color: oklch(33.3% 0.127 263.9);
Tailwind
colors: {
  custom: {
    50: '#63679e',
    500: '#122f76',
    950: '#000000',
  },
}
SCSS
$custom: #122f76;
$custom-light: #63679e;
$custom-dark: #000000;
JSON
{
  "hex": "#122f76",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 222.6,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.33277,
    "c": 0.12685,
    "h": 263.9
  },
  "luminance": 0.0347
}

Semantic roles & 50–950 ramp

primary
#122F76
secondary
#AD8B37
accent
#BB38F0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #122F76

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

Preview Lab → · Contrast checker → · Palette generator →

#122F76 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva