#123781#123781

#123781 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.0% C 0.132 H 262.1°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#123781
RGBrgb(18, 55, 129)
HSLhsl(220, 76%, 29%)
HSVhsv(220, 86%, 51%)
CMYKcmyk(86%, 57.4%, 0%, 49.4%)
CIE-LABlab(25.09, 17.17, -45.30)
CIE-LCHlch(25.09, 48.45, 290.75°)
OKLaboklab(36.03% -0.0181 -0.1308)
OKLCHoklch(36.03% 0.132 262.1)
XYZxyz(5.5767, 4.4453, 21.3287)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123781 #815C12
analogous
#126F81 #123781 #251281
triadic
#123781 #811237 #378112
tetradic
#123781 #81126F #815C12 #128125
square
#123781 #81126F #815C12 #128125
split-complementary
#123781 #812512 #6F8112
monochromatic
#040B1B #0B204B #123781 #194EB7 #2C68E2

Accessibility & contrast

On white

11.12
#123781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#123781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123781
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123781#FFFFFF#000000##FFFFFF
##1237811.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #123781;
/* rgb */ color: rgb(18, 55, 129);
/* oklch */ color: oklch(36.0% 0.132 262.1);
Tailwind
colors: {
  custom: {
    50: '#666da6',
    500: '#123781',
    950: '#000000',
  },
}
SCSS
$custom: #123781;
$custom-light: #666da6;
$custom-dark: #000000;
JSON
{
  "hex": "#123781",
  "rgb": {
    "r": 18,
    "g": 55,
    "b": 129
  },
  "hsl": {
    "h": 220,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36025,
    "c": 0.13208,
    "h": 262.1
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

primary
#123781
secondary
#B78C38
accent
#B336F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #123781

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

Preview Lab → · Contrast checker → · Palette generator →

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