#031335#031335

#031335 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.8% C 0.071 H 261.3°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#031335
RGBrgb(3, 19, 53)
HSLhsl(221, 89%, 11%)
HSVhsv(221, 94%, 21%)
CMYKcmyk(94.3%, 64.2%, 0%, 79.2%)
CIE-LABlab(6.70, 8.42, -24.22)
CIE-LCHlch(6.70, 25.65, 289.18°)
OKLaboklab(19.81% -0.0107 -0.0703)
OKLCHoklch(19.81% 0.071 261.3)
XYZxyz(0.9128, 0.7420, 3.4626)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031335 #352503
analogous
#032C35 #031335 #0C0335
triadic
#031335 #350313 #133503
tetradic
#031335 #35032C #352503 #03350C
square
#031335 #35032C #352503 #03350C
split-complementary
#031335 #350C03 #2C3503
monochromatic
#020A1D #020A1D #031335 #06286F #0A3DA9

Accessibility & contrast

On white

18.29
#031335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#031335 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031335
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031335#FFFFFF#000000##FFFFFF
##0313351.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001736
Deuteranopia (green-blind)
#001334
Tritanopia (blue-blind)
#001B21
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #031335;
/* rgb */ color: rgb(3, 19, 53);
/* oklch */ color: oklch(19.8% 0.071 261.3);
Tailwind
colors: {
  custom: {
    50: '#4c506c',
    500: '#031335',
    950: '#000000',
  },
}
SCSS
$custom: #031335;
$custom-light: #4c506c;
$custom-dark: #000000;
JSON
{
  "hex": "#031335",
  "rgb": {
    "r": 3,
    "g": 19,
    "b": 53
  },
  "hsl": {
    "h": 220.8,
    "s": 89.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.19805,
    "c": 0.07112,
    "h": 261.3
  },
  "luminance": 0.00742
}

Semantic roles & 50–950 ramp

primary
#031335
secondary
#785B1C
accent
#BA29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010207
muted
#77787A

Preview Lab

Preview with #031335

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

Preview Lab → · Contrast checker → · Palette generator →

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