#122545#122545

#122545 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 26.7% C 0.065 H 260.2°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#122545
RGBrgb(18, 37, 69)
HSLhsl(218, 59%, 17%)
HSVhsv(218, 74%, 27%)
CMYKcmyk(73.9%, 46.4%, 0%, 72.9%)
CIE-LABlab(14.85, 4.71, -22.44)
CIE-LCHlch(14.85, 22.93, 281.85°)
OKLaboklab(26.74% -0.0111 -0.064)
OKLCHoklch(26.74% 0.065 260.2)
XYZxyz(1.9848, 1.8812, 5.8876)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122545 #453212
analogous
#123F45 #122545 #191245
triadic
#122545 #451225 #254512
tetradic
#122545 #45123F #453212 #124519
square
#122545 #45123F #453212 #124519
split-complementary
#122545 #451912 #3F4512
monochromatic
#060D18 #060D18 #122545 #1F3F76 #2B59A6

Accessibility & contrast

On white

15.26
#122545 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#122545 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122545
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122545#FFFFFF#000000##FFFFFF
##1225451.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162846
Deuteranopia (green-blind)
#0E2344
Tritanopia (blue-blind)
#002C31
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #122545;
/* rgb */ color: rgb(18, 37, 69);
/* oklch */ color: oklch(26.7% 0.065 260.2);
Tailwind
colors: {
  custom: {
    50: '#565f79',
    500: '#122545',
    950: '#000000',
  },
}
SCSS
$custom: #122545;
$custom-light: #565f79;
$custom-dark: #000000;
JSON
{
  "hex": "#122545",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 69
  },
  "hsl": {
    "h": 217.647,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26739,
    "c": 0.06491,
    "h": 260.2
  },
  "luminance": 0.01881
}

Semantic roles & 50–950 ramp

primary
#122545
secondary
#7E6335
accent
#A846E2
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #122545

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

Preview Lab → · Contrast checker → · Palette generator →

#122545 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva