#031B3F#031B3F

#031B3F is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 22.9% C 0.075 H 258.0°. Best body text is #FFFFFF at 17.04:1 contrast (WCAG AA passes).

Color values

HEX#031B3F
RGBrgb(3, 27, 63)
HSLhsl(216, 91%, 13%)
HSVhsv(216, 95%, 25%)
CMYKcmyk(95.2%, 57.1%, 0%, 75.3%)
CIE-LABlab(10.27, 7.13, -25.63)
CIE-LCHlch(10.27, 26.60, 285.55°)
OKLaboklab(22.87% -0.0157 -0.0738)
OKLCHoklch(22.87% 0.075 258)
XYZxyz(1.3264, 1.1619, 4.8560)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031B3F #3F2703
analogous
#03393F #031B3F #09033F
triadic
#031B3F #3F031B #1B3F03
tetradic
#031B3F #3F0339 #3F2703 #033F09
square
#031B3F #3F0339 #3F2703 #033F09
split-complementary
#031B3F #3F0903 #393F03
monochromatic
#010D1D #010D1D #031B3F #063479 #094DB4

Accessibility & contrast

On white

17.04
#031B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #031B3F
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031B3F#FFFFFF#000000##FFFFFF
##031B3F1.0017.041.2317.04
#FFFFFF17.041.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051F40
Deuteranopia (green-blind)
#00193E
Tritanopia (blue-blind)
#00242A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #031b3f;
/* rgb */ color: rgb(3, 27, 63);
/* oklch */ color: oklch(22.9% 0.075 258.0);
Tailwind
colors: {
  custom: {
    50: '#4f5674',
    500: '#031b3f',
    950: '#000000',
  },
}
SCSS
$custom: #031b3f;
$custom-light: #4f5674;
$custom-dark: #000000;
JSON
{
  "hex": "#031b3f",
  "rgb": {
    "r": 3,
    "g": 27,
    "b": 63
  },
  "hsl": {
    "h": 216,
    "s": 90.909,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22871,
    "c": 0.07549,
    "h": 258
  },
  "luminance": 0.01162
}

Semantic roles & 50–950 ramp

primary
#031B3F
secondary
#81591D
accent
#A929FF
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #031B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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