#123381#123381

#123381 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.2% C 0.137 H 263.5°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#123381
RGBrgb(18, 51, 129)
HSLhsl(222, 76%, 29%)
HSVhsv(222, 86%, 51%)
CMYKcmyk(86%, 60.5%, 0%, 49.4%)
CIE-LABlab(23.94, 20.01, -47.19)
CIE-LCHlch(23.94, 51.25, 292.98°)
OKLaboklab(35.15% -0.0155 -0.1364)
OKLCHoklch(35.15% 0.137 263.5)
XYZxyz(5.3943, 4.0806, 21.2679)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123381 #816012
analogous
#126B81 #123381 #291281
triadic
#123381 #811233 #338112
tetradic
#123381 #81126B #816012 #128129
square
#123381 #81126B #816012 #128129
split-complementary
#123381 #812912 #6B8112
monochromatic
#040B1B #0B1E4B #123381 #1948B7 #2C62E2

Accessibility & contrast

On white

11.56
#123381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#123381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123381
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123381#FFFFFF#000000##FFFFFF
##1233811.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E84
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#004754
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #123381;
/* rgb */ color: rgb(18, 51, 129);
/* oklch */ color: oklch(35.2% 0.137 263.5);
Tailwind
colors: {
  custom: {
    50: '#666aa6',
    500: '#123381',
    950: '#000000',
  },
}
SCSS
$custom: #123381;
$custom-light: #666aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#123381",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 129
  },
  "hsl": {
    "h": 222.162,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35154,
    "c": 0.13732,
    "h": 263.5
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#123381
secondary
#B79138
accent
#BA36F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #123381

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

Preview Lab → · Contrast checker → · Palette generator →

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