#122F7D#122F7D

#122F7D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.137 H 264.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#122F7D
RGBrgb(18, 47, 125)
HSLhsl(224, 75%, 28%)
HSVhsv(224, 86%, 49%)
CMYKcmyk(85.6%, 62.4%, 0%, 51%)
CIE-LABlab(22.45, 21.19, -47.09)
CIE-LCHlch(22.45, 51.64, 294.23°)
OKLaboklab(33.93% -0.0131 -0.1362)
OKLCHoklch(33.93% 0.137 264.5)
XYZxyz(4.9663, 3.6417, 19.8392)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F7D #7D6012
analogous
#12647D #122F7D #2A127D
triadic
#122F7D #7D122F #2F7D12
tetradic
#122F7D #7D1264 #7D6012 #127D2A
square
#122F7D #7D1264 #7D6012 #127D2A
split-complementary
#122F7D #7D2A12 #647D12
monochromatic
#040A1B #0A1B48 #122F7D #1A43B2 #295BE0

Accessibility & contrast

On white

12.15
#122F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#122F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F7D
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F7D#FFFFFF#000000##FFFFFF
##122F7D1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #122f7d;
/* rgb */ color: rgb(18, 47, 125);
/* oklch */ color: oklch(33.9% 0.137 264.5);
Tailwind
colors: {
  custom: {
    50: '#6567a3',
    500: '#122f7d',
    950: '#000000',
  },
}
SCSS
$custom: #122f7d;
$custom-light: #6567a3;
$custom-dark: #000000;
JSON
{
  "hex": "#122f7d",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 223.738,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33932,
    "c": 0.13686,
    "h": 264.5
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#122F7D
secondary
#B39238
accent
#BF36F1
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #122F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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