#051335#051335

#051335 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 19.9% C 0.070 H 263.4°. Best body text is #FFFFFF at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#051335
RGBrgb(5, 19, 53)
HSLhsl(223, 83%, 11%)
HSVhsv(223, 91%, 21%)
CMYKcmyk(90.6%, 64.2%, 0%, 79.2%)
CIE-LABlab(6.82, 8.88, -24.03)
CIE-LCHlch(6.82, 25.62, 290.29°)
OKLaboklab(19.94% -0.008 -0.0696)
OKLCHoklch(19.94% 0.07 263.4)
XYZxyz(0.9378, 0.7549, 3.4638)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051335 #352705
analogous
#052B35 #051335 #0F0535
triadic
#051335 #350513 #133505
tetradic
#051335 #35052B #352705 #05350F
square
#051335 #35052B #352705 #05350F
split-complementary
#051335 #350F05 #2B3505
monochromatic
#030A1C #030A1C #051335 #0A276D #103BA5

Accessibility & contrast

On white

18.25
#051335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051335
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051335#FFFFFF#000000##FFFFFF
##0513351.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.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: #051335;
/* rgb */ color: rgb(5, 19, 53);
/* oklch */ color: oklch(19.9% 0.070 263.4);
Tailwind
colors: {
  custom: {
    50: '#4d506c',
    500: '#051335',
    950: '#000000',
  },
}
SCSS
$custom: #051335;
$custom-light: #4d506c;
$custom-dark: #000000;
JSON
{
  "hex": "#051335",
  "rgb": {
    "r": 5,
    "g": 19,
    "b": 53
  },
  "hsl": {
    "h": 222.5,
    "s": 82.759,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19941,
    "c": 0.07007,
    "h": 263.4
  },
  "luminance": 0.00755
}

Semantic roles & 50–950 ramp

primary
#051335
secondary
#765D20
accent
#BE2FF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020207
muted
#78787A

Preview Lab

Preview with #051335

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

Preview Lab → · Contrast checker → · Palette generator →

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