#122F6F#122F6F

#122F6F is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.6% C 0.117 H 263.1°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#122F6F
RGBrgb(18, 47, 111)
HSLhsl(221, 72%, 25%)
HSVhsv(221, 84%, 44%)
CMYKcmyk(83.8%, 57.7%, 0%, 56.5%)
CIE-LABlab(21.24, 15.32, -40.12)
CIE-LCHlch(21.24, 42.95, 290.90°)
OKLaboklab(32.65% -0.014 -0.1158)
OKLCHoklch(32.65% 0.117 263.1)
XYZxyz(4.1342, 3.3088, 15.4566)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F6F #6F5212
analogous
#125E6F #122F6F #23126F
triadic
#122F6F #6F122F #2F6F12
tetradic
#122F6F #6F125E #6F5212 #126F23
square
#122F6F #6F125E #6F5212 #126F23
split-complementary
#122F6F #6F2312 #5E6F12
monochromatic
#040B1A #09193A #122F6F #1B45A4 #235CD8

Accessibility & contrast

On white

12.64
#122F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#122F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F6F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F6F#FFFFFF#000000##FFFFFF
##122F6F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003771
Deuteranopia (green-blind)
#002F6E
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #122f6f;
/* rgb */ color: rgb(18, 47, 111);
/* oklch */ color: oklch(32.6% 0.117 263.1);
Tailwind
colors: {
  custom: {
    50: '#616799',
    500: '#122f6f',
    950: '#000000',
  },
}
SCSS
$custom: #122f6f;
$custom-light: #616799;
$custom-dark: #000000;
JSON
{
  "hex": "#122f6f",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 111
  },
  "hsl": {
    "h": 221.29,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32645,
    "c": 0.11661,
    "h": 263.1
  },
  "luminance": 0.03309
}

Semantic roles & 50–950 ramp

primary
#122F6F
secondary
#A68337
accent
#B639EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #122F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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