#123581#123581

#123581 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.6% C 0.135 H 262.9°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#123581
RGBrgb(18, 53, 129)
HSLhsl(221, 76%, 29%)
HSVhsv(221, 86%, 51%)
CMYKcmyk(86%, 58.9%, 0%, 49.4%)
CIE-LABlab(24.51, 18.59, -46.25)
CIE-LCHlch(24.51, 49.85, 291.90°)
OKLaboklab(35.59% -0.0168 -0.1337)
OKLCHoklch(35.59% 0.135 262.9)
XYZxyz(5.4836, 4.2591, 21.2977)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123581 #815E12
analogous
#126D81 #123581 #271281
triadic
#123581 #811235 #358112
tetradic
#123581 #81126D #815E12 #128127
square
#123581 #81126D #815E12 #128127
split-complementary
#123581 #812712 #6D8112
monochromatic
#040B1B #0B1F4B #123581 #194BB7 #2C65E2

Accessibility & contrast

On white

11.34
#123581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#123581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123581
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123581#FFFFFF#000000##FFFFFF
##1235811.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#003580
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #123581;
/* rgb */ color: rgb(18, 53, 129);
/* oklch */ color: oklch(35.6% 0.135 262.9);
Tailwind
colors: {
  custom: {
    50: '#666ba6',
    500: '#123581',
    950: '#000000',
  },
}
SCSS
$custom: #123581;
$custom-light: #666ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#123581",
  "rgb": {
    "r": 18,
    "g": 53,
    "b": 129
  },
  "hsl": {
    "h": 221.081,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35586,
    "c": 0.13471,
    "h": 262.9
  },
  "luminance": 0.0426
}

Semantic roles & 50–950 ramp

primary
#123581
secondary
#B78F38
accent
#B736F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #123581

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

Preview Lab → · Contrast checker → · Palette generator →

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