#031C41#031C41

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

Color values

HEX#031C41
RGBrgb(3, 28, 65)
HSLhsl(216, 91%, 13%)
HSVhsv(216, 95%, 25%)
CMYKcmyk(95.4%, 56.9%, 0%, 74.5%)
CIE-LABlab(10.79, 7.30, -26.21)
CIE-LCHlch(10.79, 27.21, 285.56°)
OKLaboklab(23.32% -0.0162 -0.0755)
OKLCHoklch(23.32% 0.077 257.9)
XYZxyz(1.4066, 1.2313, 5.1635)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031C41 #412803
analogous
#033B41 #031C41 #090341
triadic
#031C41 #41031C #1C4103
tetradic
#031C41 #41033B #412803 #034109
square
#031C41 #41033B #412803 #034109
split-complementary
#031C41 #410903 #3B4103
monochromatic
#010D1D #010D1D #031C41 #06357B #084EB6

Accessibility & contrast

On white

16.85
#031C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #031C41
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031C41#FFFFFF#000000##FFFFFF
##031C411.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052042
Deuteranopia (green-blind)
#001A40
Tritanopia (blue-blind)
#00252B
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #031c41;
/* rgb */ color: rgb(3, 28, 65);
/* oklch */ color: oklch(23.3% 0.077 257.9);
Tailwind
colors: {
  custom: {
    50: '#505776',
    500: '#031c41',
    950: '#000000',
  },
}
SCSS
$custom: #031c41;
$custom-light: #505776;
$custom-dark: #000000;
JSON
{
  "hex": "#031c41",
  "rgb": {
    "r": 3,
    "g": 28,
    "b": 65
  },
  "hsl": {
    "h": 215.806,
    "s": 91.176,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23318,
    "c": 0.07725,
    "h": 257.9
  },
  "luminance": 0.01232
}

Semantic roles & 50–950 ramp

primary
#031C41
secondary
#835A1D
accent
#A929FF
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #031C41

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

Preview Lab → · Contrast checker → · Palette generator →

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