#123D81#123D81

#123D81 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.4% C 0.124 H 259.6°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#123D81
RGBrgb(18, 61, 129)
HSLhsl(217, 76%, 29%)
HSVhsv(217, 86%, 51%)
CMYKcmyk(86%, 52.7%, 0%, 49.4%)
CIE-LABlab(26.88, 12.92, -42.41)
CIE-LCHlch(26.88, 44.33, 286.95°)
OKLaboklab(37.38% -0.0224 -0.1222)
OKLCHoklch(37.38% 0.124 259.6)
XYZxyz(5.8792, 5.0503, 21.4296)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123D81 #815612
analogous
#127581 #123D81 #1F1281
triadic
#123D81 #81123D #3D8112
tetradic
#123D81 #811275 #815612 #12811F
square
#123D81 #811275 #815612 #12811F
split-complementary
#123D81 #811F12 #758112
monochromatic
#040D1B #0B244B #123D81 #1956B7 #2C72E2

Accessibility & contrast

On white

10.45
#123D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#123D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123D81
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123D81#FFFFFF#000000##FFFFFF
##123D811.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104583
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #123d81;
/* rgb */ color: rgb(18, 61, 129);
/* oklch */ color: oklch(37.4% 0.124 259.6);
Tailwind
colors: {
  custom: {
    50: '#6571a6',
    500: '#123d81',
    950: '#000000',
  },
}
SCSS
$custom: #123d81;
$custom-light: #6571a6;
$custom-dark: #000000;
JSON
{
  "hex": "#123d81",
  "rgb": {
    "r": 18,
    "g": 61,
    "b": 129
  },
  "hsl": {
    "h": 216.757,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37383,
    "c": 0.12424,
    "h": 259.6
  },
  "luminance": 0.05051
}

Semantic roles & 50–950 ramp

primary
#123D81
secondary
#B78638
accent
#A936F2
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #123D81

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

Preview Lab → · Contrast checker → · Palette generator →

#123D81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva