#123881#123881

#123881 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.2% C 0.131 H 261.7°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#123881
RGBrgb(18, 56, 129)
HSLhsl(219, 76%, 29%)
HSVhsv(219, 86%, 51%)
CMYKcmyk(86%, 56.6%, 0%, 49.4%)
CIE-LABlab(25.39, 16.46, -44.83)
CIE-LCHlch(25.39, 47.75, 290.16°)
OKLaboklab(36.25% -0.0188 -0.1294)
OKLCHoklch(36.25% 0.131 261.7)
XYZxyz(5.6246, 4.5412, 21.3447)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123881 #815B12
analogous
#127081 #123881 #231281
triadic
#123881 #811238 #388112
tetradic
#123881 #811270 #815B12 #128123
square
#123881 #811270 #815B12 #128123
split-complementary
#123881 #812312 #708112
monochromatic
#040C1B #0B214B #123881 #194FB7 #2C6AE2

Accessibility & contrast

On white

11.00
#123881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#123881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123881
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123881#FFFFFF#000000##FFFFFF
##1238811.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #123881;
/* rgb */ color: rgb(18, 56, 129);
/* oklch */ color: oklch(36.2% 0.131 261.7);
Tailwind
colors: {
  custom: {
    50: '#666ea6',
    500: '#123881',
    950: '#000000',
  },
}
SCSS
$custom: #123881;
$custom-light: #666ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#123881",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 129
  },
  "hsl": {
    "h": 219.459,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36247,
    "c": 0.13078,
    "h": 261.7
  },
  "luminance": 0.04542
}

Semantic roles & 50–950 ramp

primary
#123881
secondary
#B78B38
accent
#B236F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #123881

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

Preview Lab → · Contrast checker → · Palette generator →

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