#031C40#031C40

#031C40 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.2% C 0.076 H 257.5°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#031C40
RGBrgb(3, 28, 64)
HSLhsl(215, 91%, 13%)
HSVhsv(215, 95%, 25%)
CMYKcmyk(95.3%, 56.2%, 0%, 74.9%)
CIE-LABlab(10.70, 6.82, -25.64)
CIE-LCHlch(10.70, 26.53, 284.89°)
OKLaboklab(23.23% -0.0164 -0.0738)
OKLCHoklch(23.23% 0.076 257.5)
XYZxyz(1.3779, 1.2199, 5.0123)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031C40 #402703
analogous
#033A40 #031C40 #080340
triadic
#031C40 #40031C #1C4003
tetradic
#031C40 #40033A #402703 #034008
square
#031C40 #40033A #402703 #034008
split-complementary
#031C40 #400803 #3A4003
monochromatic
#010D1D #010D1D #031C40 #06367A #084FB5

Accessibility & contrast

On white

16.88
#031C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#031C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031C40
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031C40#FFFFFF#000000##FFFFFF
##031C401.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062041
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#00252A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #031c40;
/* rgb */ color: rgb(3, 28, 64);
/* oklch */ color: oklch(23.2% 0.076 257.5);
Tailwind
colors: {
  custom: {
    50: '#505775',
    500: '#031c40',
    950: '#000000',
  },
}
SCSS
$custom: #031c40;
$custom-light: #505775;
$custom-dark: #000000;
JSON
{
  "hex": "#031c40",
  "rgb": {
    "r": 3,
    "g": 28,
    "b": 64
  },
  "hsl": {
    "h": 215.41,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23227,
    "c": 0.07564,
    "h": 257.5
  },
  "luminance": 0.0122
}

Semantic roles & 50–950 ramp

primary
#031C40
secondary
#82591D
accent
#A729FF
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #031C40

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

Preview Lab → · Contrast checker → · Palette generator →

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