#123C81#123C81

#123C81 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.2% C 0.126 H 260.1°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#123C81
RGBrgb(18, 60, 129)
HSLhsl(217, 76%, 29%)
HSVhsv(217, 86%, 51%)
CMYKcmyk(86%, 53.5%, 0%, 49.4%)
CIE-LABlab(26.58, 13.63, -42.90)
CIE-LCHlch(26.58, 45.01, 287.62°)
OKLaboklab(37.15% -0.0216 -0.1237)
OKLCHoklch(37.15% 0.126 260.1)
XYZxyz(5.8263, 4.9446, 21.4119)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123C81 #815712
analogous
#127481 #123C81 #201281
triadic
#123C81 #81123C #3C8112
tetradic
#123C81 #811274 #815712 #128120
square
#123C81 #811274 #815712 #128120
split-complementary
#123C81 #812012 #748112
monochromatic
#040C1B #0B234B #123C81 #1955B7 #2C71E2

Accessibility & contrast

On white

10.56
#123C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#123C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123C81
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123C81#FFFFFF#000000##FFFFFF
##123C811.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4483
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#004D58
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #123c81;
/* rgb */ color: rgb(18, 60, 129);
/* oklch */ color: oklch(37.2% 0.126 260.1);
Tailwind
colors: {
  custom: {
    50: '#6571a6',
    500: '#123c81',
    950: '#000000',
  },
}
SCSS
$custom: #123c81;
$custom-light: #6571a6;
$custom-dark: #000000;
JSON
{
  "hex": "#123c81",
  "rgb": {
    "r": 18,
    "g": 60,
    "b": 129
  },
  "hsl": {
    "h": 217.297,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37153,
    "c": 0.12554,
    "h": 260.1
  },
  "luminance": 0.04945
}

Semantic roles & 50–950 ramp

primary
#123C81
secondary
#B78738
accent
#AB36F2
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #123C81

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

Preview Lab → · Contrast checker → · Palette generator →

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