#031539#031539

#031539 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 20.7% C 0.075 H 260.9°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#031539
RGBrgb(3, 21, 57)
HSLhsl(220, 90%, 12%)
HSVhsv(220, 95%, 22%)
CMYKcmyk(94.7%, 63.2%, 0%, 77.6%)
CIE-LABlab(7.69, 9.05, -25.53)
CIE-LCHlch(7.69, 27.09, 289.51°)
OKLaboklab(20.73% -0.0118 -0.0737)
OKLCHoklch(20.73% 0.075 260.9)
XYZxyz(1.0440, 0.8510, 3.9793)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031539 #392703
analogous
#033039 #031539 #0C0339
triadic
#031539 #390315 #153903
tetradic
#031539 #390330 #392703 #03390C
square
#031539 #390330 #392703 #03390C
split-complementary
#031539 #390C03 #303903
monochromatic
#020B1D #020B1D #031539 #062A73 #0940AD

Accessibility & contrast

On white

17.95
#031539 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#031539 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031539
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031539#FFFFFF#000000##FFFFFF
##0315391.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3A
Deuteranopia (green-blind)
#001438
Tritanopia (blue-blind)
#001E24
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #031539;
/* rgb */ color: rgb(3, 21, 57);
/* oklch */ color: oklch(20.7% 0.075 260.9);
Tailwind
colors: {
  custom: {
    50: '#4e5170',
    500: '#031539',
    950: '#000000',
  },
}
SCSS
$custom: #031539;
$custom-light: #4e5170;
$custom-dark: #000000;
JSON
{
  "hex": "#031539",
  "rgb": {
    "r": 3,
    "g": 21,
    "b": 57
  },
  "hsl": {
    "h": 220,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20725,
    "c": 0.07468,
    "h": 260.9
  },
  "luminance": 0.00851
}

Semantic roles & 50–950 ramp

primary
#031539
secondary
#7C5C1C
accent
#B829FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #031539

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

Preview Lab → · Contrast checker → · Palette generator →

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