#123366#123366

#123366 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 32.8% C 0.098 H 259.1°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#123366
RGBrgb(18, 51, 102)
HSLhsl(216, 70%, 24%)
HSVhsv(216, 82%, 40%)
CMYKcmyk(82.4%, 50%, 0%, 60%)
CIE-LABlab(21.78, 8.58, -33.42)
CIE-LCHlch(21.78, 34.51, 284.39°)
OKLaboklab(32.84% -0.0185 -0.096)
OKLCHoklch(32.84% 0.098 259.1)
XYZxyz(3.8307, 3.4551, 13.0328)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123366 #664512
analogous
#125D66 #123366 #1B1266
triadic
#123366 #661233 #336612
tetradic
#123366 #66125D #664512 #12661B
square
#123366 #66125D #664512 #12661B
split-complementary
#123366 #661B12 #5D6612
monochromatic
#050D1A #091932 #123366 #1B4D9A #2467CE

Accessibility & contrast

On white

12.42
#123366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#123366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123366
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123366#FFFFFF#000000##FFFFFF
##1233661.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173868
Deuteranopia (green-blind)
#013165
Tritanopia (blue-blind)
#003F47
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #123366;
/* rgb */ color: rgb(18, 51, 102);
/* oklch */ color: oklch(32.8% 0.098 259.1);
Tailwind
colors: {
  custom: {
    50: '#5e6a92',
    500: '#123366',
    950: '#000000',
  },
}
SCSS
$custom: #123366;
$custom-light: #5e6a92;
$custom-dark: #000000;
JSON
{
  "hex": "#123366",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 102
  },
  "hsl": {
    "h": 216.429,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.32837,
    "c": 0.09775,
    "h": 259.1
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#123366
secondary
#9E7536
accent
#A73BED
background
#F5F6F9
surface
#EAEBF1
border
#C6C6CB
text
#05060D
muted
#797A7E

Preview Lab

Preview with #123366

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

Preview Lab → · Contrast checker → · Palette generator →

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