#031126#031126

#031126 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 17.8% C 0.049 H 256.1°. Best body text is #FFFFFF at 18.88:1 contrast (WCAG AA passes).

Color values

HEX#031126
RGBrgb(3, 17, 38)
HSLhsl(216, 85%, 8%)
HSVhsv(216, 92%, 15%)
CMYKcmyk(92.1%, 55.3%, 0%, 85.1%)
CIE-LABlab(5.06, 2.27, -15.66)
CIE-LCHlch(5.06, 15.82, 278.24°)
OKLaboklab(17.84% -0.0116 -0.0471)
OKLCHoklch(17.84% 0.049 256.1)
XYZxyz(0.5877, 0.5601, 1.9105)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031126 #261803
analogous
#032226 #031126 #060326
triadic
#031126 #260311 #112603
tetradic
#031126 #260322 #261803 #032606
square
#031126 #260322 #261803 #032606
split-complementary
#031126 #260603 #222603
monochromatic
#020D1C #020D1C #031126 #072A5F #0C4497

Accessibility & contrast

On white

18.88
#031126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#031126 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031126
18.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031126#FFFFFF#000000##FFFFFF
##0311261.0018.881.1118.88
#FFFFFF18.881.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071327
Deuteranopia (green-blind)
#020F26
Tritanopia (blue-blind)
#001619
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #031126;
/* rgb */ color: rgb(3, 17, 38);
/* oklch */ color: oklch(17.8% 0.049 256.1);
Tailwind
colors: {
  custom: {
    50: '#484f60',
    500: '#031126',
    950: '#000000',
  },
}
SCSS
$custom: #031126;
$custom-light: #484f60;
$custom-dark: #000000;
JSON
{
  "hex": "#031126",
  "rgb": {
    "r": 3,
    "g": 17,
    "b": 38
  },
  "hsl": {
    "h": 216,
    "s": 85.366,
    "l": 8.039
  },
  "oklch": {
    "l": 0.17838,
    "c": 0.04853,
    "h": 256.1
  },
  "luminance": 0.0056
}

Semantic roles & 50–950 ramp

primary
#031126
secondary
#6A4A1B
accent
#A92CFC
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#010105
muted
#777779

Preview Lab

Preview with #031126

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

Preview Lab → · Contrast checker → · Palette generator →

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