#122B5F#122B5F

#122B5F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.3% C 0.098 H 262.7°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#122B5F
RGBrgb(18, 43, 95)
HSLhsl(221, 68%, 22%)
HSVhsv(221, 81%, 37%)
CMYKcmyk(81.1%, 54.7%, 0%, 62.7%)
CIE-LABlab(18.72, 11.41, -33.77)
CIE-LCHlch(18.72, 35.65, 288.67°)
OKLaboklab(30.33% -0.0124 -0.0972)
OKLCHoklch(30.33% 0.098 262.7)
XYZxyz(3.1782, 2.6822, 11.1745)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122B5F #5F4612
analogous
#12525F #122B5F #1F125F
triadic
#122B5F #5F122B #2B5F12
tetradic
#122B5F #5F1252 #5F4612 #125F1F
square
#122B5F #5F1252 #5F4612 #125F1F
split-complementary
#122B5F #5F1F12 #525F12
monochromatic
#050C1A #08142C #122B5F #1C4292 #255AC6

Accessibility & contrast

On white

13.67
#122B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#122B5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122B5F
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122B5F#FFFFFF#000000##FFFFFF
##122B5F1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3161
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#003840
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #122b5f;
/* rgb */ color: rgb(18, 43, 95);
/* oklch */ color: oklch(30.3% 0.098 262.7);
Tailwind
colors: {
  custom: {
    50: '#5d638d',
    500: '#122b5f',
    950: '#000000',
  },
}
SCSS
$custom: #122b5f;
$custom-light: #5d638d;
$custom-dark: #000000;
JSON
{
  "hex": "#122b5f",
  "rgb": {
    "r": 18,
    "g": 43,
    "b": 95
  },
  "hsl": {
    "h": 220.519,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30326,
    "c": 0.09796,
    "h": 262.7
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#122B5F
secondary
#977836
accent
#B23DEB
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #122B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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