#122F62#122F62

#122F62 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.5% C 0.097 H 260.8°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#122F62
RGBrgb(18, 47, 98)
HSLhsl(218, 69%, 23%)
HSVhsv(218, 82%, 38%)
CMYKcmyk(81.6%, 52%, 0%, 61.6%)
CIE-LABlab(20.22, 9.76, -33.33)
CIE-LCHlch(20.22, 34.74, 286.33°)
OKLaboklab(31.54% -0.0156 -0.0958)
OKLCHoklch(31.54% 0.097 260.8)
XYZxyz(3.4698, 3.0431, 11.9574)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F62 #624512
analogous
#125762 #122F62 #1D1262
triadic
#122F62 #62122F #2F6212
tetradic
#122F62 #621257 #624512 #12621D
square
#122F62 #621257 #624512 #12621D
split-complementary
#122F62 #621D12 #576212
monochromatic
#050C1A #09162E #122F62 #1B4896 #2561C9

Accessibility & contrast

On white

13.05
#122F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#122F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F62
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F62#FFFFFF#000000##FFFFFF
##122F621.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113564
Deuteranopia (green-blind)
#002D61
Tritanopia (blue-blind)
#003B43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #122f62;
/* rgb */ color: rgb(18, 47, 98);
/* oklch */ color: oklch(31.5% 0.097 260.8);
Tailwind
colors: {
  custom: {
    50: '#5e678f',
    500: '#122f62',
    950: '#000000',
  },
}
SCSS
$custom: #122f62;
$custom-light: #5e678f;
$custom-dark: #000000;
JSON
{
  "hex": "#122f62",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 98
  },
  "hsl": {
    "h": 218.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.3154,
    "c": 0.09706,
    "h": 260.8
  },
  "luminance": 0.03043
}

Semantic roles & 50–950 ramp

primary
#122F62
secondary
#9A7636
accent
#AC3CEC
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #122F62

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

Preview Lab → · Contrast checker → · Palette generator →

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