#031B40#031B40

#031B40 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.0% C 0.077 H 258.4°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#031B40
RGBrgb(3, 27, 64)
HSLhsl(216, 91%, 13%)
HSVhsv(216, 95%, 25%)
CMYKcmyk(95.3%, 57.8%, 0%, 74.9%)
CIE-LABlab(10.36, 7.61, -26.20)
CIE-LCHlch(10.36, 27.28, 286.20°)
OKLaboklab(22.96% -0.0155 -0.0755)
OKLCHoklch(22.96% 0.077 258.4)
XYZxyz(1.3546, 1.1732, 5.0046)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031B40 #402803
analogous
#033940 #031B40 #090340
triadic
#031B40 #40031B #1B4003
tetradic
#031B40 #400339 #402803 #034009
square
#031B40 #400339 #402803 #034009
split-complementary
#031B40 #400903 #394003
monochromatic
#010C1D #010C1D #031B40 #06347A #084CB5

Accessibility & contrast

On white

17.01
#031B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#031B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031B40
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031B40#FFFFFF#000000##FFFFFF
##031B401.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041F41
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#00242A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #031b40;
/* rgb */ color: rgb(3, 27, 64);
/* oklch */ color: oklch(23.0% 0.077 258.4);
Tailwind
colors: {
  custom: {
    50: '#505675',
    500: '#031b40',
    950: '#000000',
  },
}
SCSS
$custom: #031b40;
$custom-light: #505675;
$custom-dark: #000000;
JSON
{
  "hex": "#031b40",
  "rgb": {
    "r": 3,
    "g": 27,
    "b": 64
  },
  "hsl": {
    "h": 216.393,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22963,
    "c": 0.0771,
    "h": 258.4
  },
  "luminance": 0.01173
}

Semantic roles & 50–950 ramp

primary
#031B40
secondary
#825A1D
accent
#AB29FF
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #031B40

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

Preview Lab → · Contrast checker → · Palette generator →

#031B40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva