#031340#031340

#031340 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.0% C 0.089 H 263.6°. Best body text is #FFFFFF at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#031340
RGBrgb(3, 19, 64)
HSLhsl(224, 91%, 13%)
HSVhsv(224, 95%, 25%)
CMYKcmyk(95.3%, 70.3%, 0%, 74.9%)
CIE-LABlab(7.72, 14.02, -30.48)
CIE-LCHlch(7.72, 33.55, 294.70°)
OKLaboklab(20.97% -0.01 -0.0883)
OKLCHoklch(20.97% 0.089 263.6)
XYZxyz(1.1955, 0.8551, 4.9515)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031340 #403003
analogous
#033140 #031340 #110340
triadic
#031340 #400313 #134003
tetradic
#031340 #400331 #403003 #034011
square
#031340 #400331 #403003 #034011
split-complementary
#031340 #401103 #314003
monochromatic
#01091D #01091D #031340 #06247A #0836B5

Accessibility & contrast

On white

17.93
#031340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #031340
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031340#FFFFFF#000000##FFFFFF
##0313401.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A41
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#001F27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #031340;
/* rgb */ color: rgb(3, 19, 64);
/* oklch */ color: oklch(21.0% 0.089 263.6);
Tailwind
colors: {
  custom: {
    50: '#515075',
    500: '#031340',
    950: '#000000',
  },
}
SCSS
$custom: #031340;
$custom-light: #515075;
$custom-dark: #000000;
JSON
{
  "hex": "#031340",
  "rgb": {
    "r": 3,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 224.262,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20969,
    "c": 0.08887,
    "h": 263.6
  },
  "luminance": 0.00855
}

Semantic roles & 50–950 ramp

primary
#031340
secondary
#82671D
accent
#C729FF
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #031340

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

Preview Lab → · Contrast checker → · Palette generator →

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