#031031#031031

#031031 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.6% C 0.069 H 262.7°. Best body text is #FFFFFF at 18.71:1 contrast (WCAG AA passes).

Color values

HEX#031031
RGBrgb(3, 16, 49)
HSLhsl(223, 88%, 10%)
HSVhsv(223, 94%, 19%)
CMYKcmyk(93.9%, 67.3%, 0%, 80.8%)
CIE-LABlab(5.52, 8.02, -23.18)
CIE-LCHlch(5.52, 24.52, 289.08°)
OKLaboklab(18.62% -0.0088 -0.0685)
OKLCHoklch(18.62% 0.069 262.7)
XYZxyz(0.7770, 0.6116, 2.9822)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031031 #312403
analogous
#032731 #031031 #0D0331
triadic
#031031 #310310 #103103
tetradic
#031031 #310327 #312403 #03310D
square
#031031 #310327 #312403 #03310D
split-complementary
#031031 #310D03 #273103
monochromatic
#02091D #02091D #031031 #07236B #0A36A4

Accessibility & contrast

On white

18.71
#031031 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#031031 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031031
18.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031031#FFFFFF#000000##FFFFFF
##0310311.0018.711.1218.71
#FFFFFF18.711.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001432
Deuteranopia (green-blind)
#001030
Tritanopia (blue-blind)
#00181E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #031031;
/* rgb */ color: rgb(3, 16, 49);
/* oklch */ color: oklch(18.6% 0.069 262.7);
Tailwind
colors: {
  custom: {
    50: '#4b4e69',
    500: '#031031',
    950: '#000000',
  },
}
SCSS
$custom: #031031;
$custom-light: #4b4e69;
$custom-dark: #000000;
JSON
{
  "hex": "#031031",
  "rgb": {
    "r": 3,
    "g": 16,
    "b": 49
  },
  "hsl": {
    "h": 223.043,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18616,
    "c": 0.06905,
    "h": 262.7
  },
  "luminance": 0.00612
}

Semantic roles & 50–950 ramp

primary
#031031
secondary
#745B1B
accent
#C229FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #031031

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

Preview Lab → · Contrast checker → · Palette generator →

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