#031B47#031B47

#031B47 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.6% C 0.088 H 260.5°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#031B47
RGBrgb(3, 27, 71)
HSLhsl(219, 92%, 15%)
HSVhsv(219, 96%, 28%)
CMYKcmyk(95.8%, 62%, 0%, 72.2%)
CIE-LABlab(10.98, 10.95, -30.10)
CIE-LCHlch(10.98, 32.03, 290.00°)
OKLaboklab(23.63% -0.0146 -0.087)
OKLCHoklch(23.63% 0.088 260.5)
XYZxyz(1.5664, 1.2580, 6.1203)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031B47 #472F03
analogous
#033D47 #031B47 #0D0347
triadic
#031B47 #47031B #1B4703
tetradic
#031B47 #47033D #472F03 #03470D
square
#031B47 #47033D #472F03 #03470D
split-complementary
#031B47 #470D03 #3D4703
monochromatic
#010B1D #010B1D #031B47 #053182 #0848BC

Accessibility & contrast

On white

16.78
#031B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#031B47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031B47
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031B47#FFFFFF#000000##FFFFFF
##031B471.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#001A46
Tritanopia (blue-blind)
#00262D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #031b47;
/* rgb */ color: rgb(3, 27, 71);
/* oklch */ color: oklch(23.6% 0.088 260.5);
Tailwind
colors: {
  custom: {
    50: '#52567b',
    500: '#031b47',
    950: '#000000',
  },
}
SCSS
$custom: #031b47;
$custom-light: #52567b;
$custom-dark: #000000;
JSON
{
  "hex": "#031b47",
  "rgb": {
    "r": 3,
    "g": 27,
    "b": 71
  },
  "hsl": {
    "h": 218.824,
    "s": 91.892,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23631,
    "c": 0.08821,
    "h": 260.5
  },
  "luminance": 0.01258
}

Semantic roles & 50–950 ramp

primary
#031B47
secondary
#88631E
accent
#B329FF
background
#F5F5F7
surface
#E8E9EE
border
#C4C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #031B47

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

Preview Lab → · Contrast checker → · Palette generator →

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