#122F7B#122F7B

#122F7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.7% C 0.134 H 264.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#122F7B
RGBrgb(18, 47, 123)
HSLhsl(223, 74%, 28%)
HSVhsv(223, 85%, 48%)
CMYKcmyk(85.4%, 61.8%, 0%, 51.8%)
CIE-LABlab(22.27, 20.36, -46.12)
CIE-LCHlch(22.27, 50.41, 293.83°)
OKLaboklab(33.74% -0.0132 -0.1334)
OKLCHoklch(33.74% 0.134 264.3)
XYZxyz(4.8398, 3.5911, 19.1731)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F7B #7B5E12
analogous
#12637B #122F7B #2A127B
triadic
#122F7B #7B122F #2F7B12
tetradic
#122F7B #7B1263 #7B5E12 #127B2A
square
#122F7B #7B1263 #7B5E12 #127B2A
split-complementary
#122F7B #7B2A12 #637B12
monochromatic
#040A1B #0A1B46 #122F7B #1A43B0 #285BE0

Accessibility & contrast

On white

12.22
#122F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#122F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F7B
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F7B#FFFFFF#000000##FFFFFF
##122F7B1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #122f7b;
/* rgb */ color: rgb(18, 47, 123);
/* oklch */ color: oklch(33.7% 0.134 264.3);
Tailwind
colors: {
  custom: {
    50: '#6567a2',
    500: '#122f7b',
    950: '#000000',
  },
}
SCSS
$custom: #122f7b;
$custom-light: #6567a2;
$custom-dark: #000000;
JSON
{
  "hex": "#122f7b",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 223.429,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33742,
    "c": 0.13402,
    "h": 264.3
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#122F7B
secondary
#B19038
accent
#BE37F1
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #122F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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