#031535#031535

#031535 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.3% C 0.068 H 259.5°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#031535
RGBrgb(3, 21, 53)
HSLhsl(218, 89%, 11%)
HSVhsv(218, 94%, 21%)
CMYKcmyk(94.3%, 60.4%, 0%, 79.2%)
CIE-LABlab(7.34, 7.03, -23.19)
CIE-LCHlch(7.34, 24.24, 286.86°)
OKLaboklab(20.34% -0.0124 -0.0669)
OKLCHoklch(20.34% 0.068 259.5)
XYZxyz(0.9481, 0.8126, 3.4744)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031535 #352303
analogous
#032E35 #031535 #0A0335
triadic
#031535 #350315 #153503
tetradic
#031535 #35032E #352303 #03350A
square
#031535 #35032E #352303 #03350A
split-complementary
#031535 #350A03 #2E3503
monochromatic
#020B1D #020B1D #031535 #062C6F #0A43A9

Accessibility & contrast

On white

18.06
#031535 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#031535 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031535
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031535#FFFFFF#000000##FFFFFF
##0315351.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021936
Deuteranopia (green-blind)
#001434
Tritanopia (blue-blind)
#001D22
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #031535;
/* rgb */ color: rgb(3, 21, 53);
/* oklch */ color: oklch(20.3% 0.068 259.5);
Tailwind
colors: {
  custom: {
    50: '#4c516c',
    500: '#031535',
    950: '#000000',
  },
}
SCSS
$custom: #031535;
$custom-light: #4c516c;
$custom-dark: #000000;
JSON
{
  "hex": "#031535",
  "rgb": {
    "r": 3,
    "g": 21,
    "b": 53
  },
  "hsl": {
    "h": 218.4,
    "s": 89.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20335,
    "c": 0.06808,
    "h": 259.5
  },
  "luminance": 0.00813
}

Semantic roles & 50–950 ramp

primary
#031535
secondary
#78571C
accent
#B229FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010207
muted
#77787A

Preview Lab

Preview with #031535

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

Preview Lab → · Contrast checker → · Palette generator →

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