#122E5F#122E5F

#122E5F is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.1% C 0.094 H 260.7°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#122E5F
RGBrgb(18, 46, 95)
HSLhsl(218, 68%, 22%)
HSVhsv(218, 81%, 37%)
CMYKcmyk(81.1%, 51.6%, 0%, 62.7%)
CIE-LABlab(19.67, 9.21, -32.24)
CIE-LCHlch(19.67, 33.53, 285.94°)
OKLaboklab(31.05% -0.0152 -0.0926)
OKLCHoklch(31.05% 0.094 260.7)
XYZxyz(3.2913, 2.9084, 11.2122)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122E5F #5F4312
analogous
#12555F #122E5F #1D125F
triadic
#122E5F #5F122E #2E5F12
tetradic
#122E5F #5F1255 #5F4312 #125F1D
square
#122E5F #5F1255 #5F4312 #125F1D
split-complementary
#122E5F #5F1D12 #555F12
monochromatic
#050C1A #08152C #122E5F #1C4792 #2560C6

Accessibility & contrast

On white

13.28
#122E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#122E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122E5F
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122E5F#FFFFFF#000000##FFFFFF
##122E5F1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123361
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #122e5f;
/* rgb */ color: rgb(18, 46, 95);
/* oklch */ color: oklch(31.1% 0.094 260.7);
Tailwind
colors: {
  custom: {
    50: '#5d668d',
    500: '#122e5f',
    950: '#000000',
  },
}
SCSS
$custom: #122e5f;
$custom-light: #5d668d;
$custom-dark: #000000;
JSON
{
  "hex": "#122e5f",
  "rgb": {
    "r": 18,
    "g": 46,
    "b": 95
  },
  "hsl": {
    "h": 218.182,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31052,
    "c": 0.09383,
    "h": 260.7
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#122E5F
secondary
#977436
accent
#AC3DEB
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #122E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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