#123981#123981

#123981 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.5% C 0.129 H 261.3°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#123981
RGBrgb(18, 57, 129)
HSLhsl(219, 76%, 29%)
HSVhsv(219, 86%, 51%)
CMYKcmyk(86%, 55.8%, 0%, 49.4%)
CIE-LABlab(25.68, 15.75, -44.35)
CIE-LCHlch(25.68, 47.06, 289.55°)
OKLaboklab(36.47% -0.0195 -0.128)
OKLCHoklch(36.47% 0.129 261.3)
XYZxyz(5.6736, 4.6391, 21.3610)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123981 #815A12
analogous
#127181 #123981 #231281
triadic
#123981 #811239 #398112
tetradic
#123981 #811271 #815A12 #128123
square
#123981 #811271 #815A12 #128123
split-complementary
#123981 #812312 #718112
monochromatic
#040C1B #0B214B #123981 #1951B7 #2C6CE2

Accessibility & contrast

On white

10.89
#123981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#123981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123981
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123981#FFFFFF#000000##FFFFFF
##1239811.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#004B57
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #123981;
/* rgb */ color: rgb(18, 57, 129);
/* oklch */ color: oklch(36.5% 0.129 261.3);
Tailwind
colors: {
  custom: {
    50: '#666ea6',
    500: '#123981',
    950: '#000000',
  },
}
SCSS
$custom: #123981;
$custom-light: #666ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#123981",
  "rgb": {
    "r": 18,
    "g": 57,
    "b": 129
  },
  "hsl": {
    "h": 218.919,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36471,
    "c": 0.12946,
    "h": 261.3
  },
  "luminance": 0.0464
}

Semantic roles & 50–950 ramp

primary
#123981
secondary
#B78A38
accent
#B036F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #123981

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

Preview Lab → · Contrast checker → · Palette generator →

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