#123162#123162

#123162 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.0% C 0.094 H 259.4°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#123162
RGBrgb(18, 49, 98)
HSLhsl(217, 69%, 23%)
HSVhsv(217, 82%, 38%)
CMYKcmyk(81.6%, 50%, 0%, 61.6%)
CIE-LABlab(20.85, 8.31, -32.31)
CIE-LCHlch(20.85, 33.36, 284.42°)
OKLaboklab(32.03% -0.0174 -0.0927)
OKLCHoklch(32.03% 0.094 259.4)
XYZxyz(3.5516, 3.2067, 11.9847)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123162 #624312
analogous
#125962 #123162 #1B1262
triadic
#123162 #621231 #316212
tetradic
#123162 #621259 #624312 #12621B
square
#123162 #621259 #624312 #12621B
split-complementary
#123162 #621B12 #596212
monochromatic
#050D1A #09172E #123162 #1B4B96 #2565C9

Accessibility & contrast

On white

12.79
#123162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#123162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123162
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123162#FFFFFF#000000##FFFFFF
##1231621.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163664
Deuteranopia (green-blind)
#032F61
Tritanopia (blue-blind)
#003D44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #123162;
/* rgb */ color: rgb(18, 49, 98);
/* oklch */ color: oklch(32.0% 0.094 259.4);
Tailwind
colors: {
  custom: {
    50: '#5d688f',
    500: '#123162',
    950: '#000000',
  },
}
SCSS
$custom: #123162;
$custom-light: #5d688f;
$custom-dark: #000000;
JSON
{
  "hex": "#123162",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 98
  },
  "hsl": {
    "h": 216.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32029,
    "c": 0.09436,
    "h": 259.4
  },
  "luminance": 0.03207
}

Semantic roles & 50–950 ramp

primary
#123162
secondary
#9A7336
accent
#A83CEC
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #123162

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

Preview Lab → · Contrast checker → · Palette generator →

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