#123181#123181

#123181 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.140 H 264.2°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#123181
RGBrgb(18, 49, 129)
HSLhsl(223, 76%, 29%)
HSVhsv(223, 86%, 51%)
CMYKcmyk(86%, 62%, 0%, 49.4%)
CIE-LABlab(23.37, 21.43, -48.11)
CIE-LCHlch(23.37, 52.67, 294.01°)
OKLaboklab(34.73% -0.0142 -0.1392)
OKLCHoklch(34.73% 0.14 264.2)
XYZxyz(5.3088, 3.9096, 21.2394)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123181 #816212
analogous
#126981 #123181 #2B1281
triadic
#123181 #811231 #318112
tetradic
#123181 #811269 #816212 #12812B
square
#123181 #811269 #816212 #12812B
split-complementary
#123181 #812B12 #698112
monochromatic
#040A1B #0B1D4B #123181 #1945B7 #2C5FE2

Accessibility & contrast

On white

11.78
#123181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#123181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123181
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123181#FFFFFF#000000##FFFFFF
##1231811.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #123181;
/* rgb */ color: rgb(18, 49, 129);
/* oklch */ color: oklch(34.7% 0.140 264.2);
Tailwind
colors: {
  custom: {
    50: '#6668a6',
    500: '#123181',
    950: '#000000',
  },
}
SCSS
$custom: #123181;
$custom-light: #6668a6;
$custom-dark: #000000;
JSON
{
  "hex": "#123181",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 223.243,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3473,
    "c": 0.13992,
    "h": 264.2
  },
  "luminance": 0.0391
}

Semantic roles & 50–950 ramp

primary
#123181
secondary
#B79338
accent
#BD36F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #123181

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

Preview Lab → · Contrast checker → · Palette generator →

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