#123170#123170

#123170 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.2% C 0.115 H 262.3°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#123170
RGBrgb(18, 49, 112)
HSLhsl(220, 72%, 25%)
HSVhsv(220, 84%, 44%)
CMYKcmyk(83.9%, 56.3%, 0%, 56.1%)
CIE-LABlab(21.92, 14.29, -39.66)
CIE-LCHlch(21.92, 42.15, 289.82°)
OKLaboklab(33.19% -0.0154 -0.1144)
OKLCHoklch(33.19% 0.115 262.3)
XYZxyz(4.2713, 3.4946, 15.7755)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123170 #705112
analogous
#126070 #123170 #221270
triadic
#123170 #701231 #317012
tetradic
#123170 #701260 #705112 #127022
square
#123170 #701260 #705112 #127022
split-complementary
#123170 #702212 #607012
monochromatic
#040C1A #0A1A3B #123170 #1A48A5 #235FD9

Accessibility & contrast

On white

12.36
#123170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#123170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123170
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123170#FFFFFF#000000##FFFFFF
##1231701.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003972
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#00404B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #123170;
/* rgb */ color: rgb(18, 49, 112);
/* oklch */ color: oklch(33.2% 0.115 262.3);
Tailwind
colors: {
  custom: {
    50: '#61689a',
    500: '#123170',
    950: '#000000',
  },
}
SCSS
$custom: #123170;
$custom-light: #61689a;
$custom-dark: #000000;
JSON
{
  "hex": "#123170",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 112
  },
  "hsl": {
    "h": 220.213,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33189,
    "c": 0.11539,
    "h": 262.3
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#123170
secondary
#A78237
accent
#B339EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #123170

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

Preview Lab → · Contrast checker → · Palette generator →

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