#123166#123166

#123166 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.4% C 0.100 H 260.4°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#123166
RGBrgb(18, 49, 102)
HSLhsl(218, 70%, 24%)
HSVhsv(218, 82%, 40%)
CMYKcmyk(82.4%, 52%, 0%, 60%)
CIE-LABlab(21.15, 10.02, -34.45)
CIE-LCHlch(21.15, 35.87, 286.23°)
OKLaboklab(32.35% -0.0167 -0.099)
OKLCHoklch(32.35% 0.1 260.4)
XYZxyz(3.7452, 3.2841, 13.0043)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123166 #664712
analogous
#125B66 #123166 #1D1266
triadic
#123166 #661231 #316612
tetradic
#123166 #66125B #664712 #12661D
square
#123166 #66125B #664712 #12661D
split-complementary
#123166 #661D12 #5B6612
monochromatic
#050C1A #091832 #123166 #1B4A9A #2463CE

Accessibility & contrast

On white

12.67
#123166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#123166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123166
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123166#FFFFFF#000000##FFFFFF
##1231661.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123768
Deuteranopia (green-blind)
#002F65
Tritanopia (blue-blind)
#003E46
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #123166;
/* rgb */ color: rgb(18, 49, 102);
/* oklch */ color: oklch(32.4% 0.100 260.4);
Tailwind
colors: {
  custom: {
    50: '#5f6892',
    500: '#123166',
    950: '#000000',
  },
}
SCSS
$custom: #123166;
$custom-light: #5f6892;
$custom-dark: #000000;
JSON
{
  "hex": "#123166",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 217.857,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.3235,
    "c": 0.10043,
    "h": 260.4
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#123166
secondary
#9E7736
accent
#AB3BED
background
#F5F6F9
surface
#EAEBF1
border
#C6C6CB
text
#05060D
muted
#797A7E

Preview Lab

Preview with #123166

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

Preview Lab → · Contrast checker → · Palette generator →

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