#122A6A#122A6A

#122A6A is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.1% C 0.116 H 264.8°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#122A6A
RGBrgb(18, 42, 106)
HSLhsl(224, 71%, 24%)
HSVhsv(224, 83%, 42%)
CMYKcmyk(83%, 60.4%, 0%, 58.4%)
CIE-LABlab(19.33, 16.85, -40.00)
CIE-LCHlch(19.33, 43.40, 292.84°)
OKLaboklab(31.07% -0.0106 -0.1155)
OKLCHoklch(31.07% 0.116 264.8)
XYZxyz(3.6780, 2.8247, 13.9843)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A6A #6A5212
analogous
#12566A #122A6A #26126A
triadic
#122A6A #6A122A #2A6A12
tetradic
#122A6A #6A1256 #6A5212 #126A26
square
#122A6A #6A1256 #6A5212 #126A26
split-complementary
#122A6A #6A2612 #566A12
monochromatic
#040A1A #091536 #122A6A #1B3F9E #2453D3

Accessibility & contrast

On white

13.42
#122A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#122A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A6A
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A6A#FFFFFF#000000##FFFFFF
##122A6A1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#003A45
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #122a6a;
/* rgb */ color: rgb(18, 42, 106);
/* oklch */ color: oklch(31.1% 0.116 264.8);
Tailwind
colors: {
  custom: {
    50: '#606395',
    500: '#122a6a',
    950: '#000000',
  },
}
SCSS
$custom: #122a6a;
$custom-light: #606395;
$custom-dark: #000000;
JSON
{
  "hex": "#122a6a",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 106
  },
  "hsl": {
    "h": 223.636,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.3107,
    "c": 0.11598,
    "h": 264.8
  },
  "luminance": 0.02825
}

Semantic roles & 50–950 ramp

primary
#122A6A
secondary
#A28436
accent
#BD3AEE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#05050D
muted
#7A797E

Preview Lab

Preview with #122A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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