#122F7C#122F7C

#122F7C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.135 H 264.4°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#122F7C
RGBrgb(18, 47, 124)
HSLhsl(224, 75%, 28%)
HSVhsv(224, 85%, 49%)
CMYKcmyk(85.5%, 62.1%, 0%, 51.4%)
CIE-LABlab(22.36, 20.78, -46.60)
CIE-LCHlch(22.36, 51.03, 294.03°)
OKLaboklab(33.84% -0.0132 -0.1348)
OKLCHoklch(33.84% 0.135 264.4)
XYZxyz(4.9028, 3.6163, 19.5045)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F7C #7C5F12
analogous
#12647C #122F7C #2A127C
triadic
#122F7C #7C122F #2F7C12
tetradic
#122F7C #7C1264 #7C5F12 #127C2A
square
#122F7C #7C1264 #7C5F12 #127C2A
split-complementary
#122F7C #7C2A12 #647C12
monochromatic
#040A1B #0A1B47 #122F7C #1A43B1 #295BE0

Accessibility & contrast

On white

12.19
#122F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122F7C
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F7C#FFFFFF#000000##FFFFFF
##122F7C1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #122f7c;
/* rgb */ color: rgb(18, 47, 124);
/* oklch */ color: oklch(33.8% 0.135 264.4);
Tailwind
colors: {
  custom: {
    50: '#6567a3',
    500: '#122f7c',
    950: '#000000',
  },
}
SCSS
$custom: #122f7c;
$custom-light: #6567a3;
$custom-dark: #000000;
JSON
{
  "hex": "#122f7c",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 223.585,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33837,
    "c": 0.13545,
    "h": 264.4
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #122F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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