#051938#051938

#051938 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.8% C 0.066 H 258.5°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#051938
RGBrgb(5, 25, 56)
HSLhsl(216, 84%, 12%)
HSVhsv(216, 91%, 22%)
CMYKcmyk(91.1%, 55.4%, 0%, 78%)
CIE-LABlab(9.10, 5.72, -22.52)
CIE-LCHlch(9.10, 23.24, 284.26°)
OKLaboklab(21.81% -0.0131 -0.0647)
OKLCHoklch(21.81% 0.066 258.5)
XYZxyz(1.1238, 1.0129, 3.8769)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051938 #382405
analogous
#053338 #051938 #0B0538
triadic
#051938 #380519 #193805
tetradic
#051938 #380533 #382405 #05380B
square
#051938 #380533 #382405 #05380B
split-complementary
#051938 #380B05 #333805
monochromatic
#030D1C #030D1C #051938 #0A3270 #0F4BA8

Accessibility & contrast

On white

17.46
#051938 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#051938 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051938
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051938#FFFFFF#000000##FFFFFF
##0519381.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081C39
Deuteranopia (green-blind)
#001737
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #051938;
/* rgb */ color: rgb(5, 25, 56);
/* oklch */ color: oklch(21.8% 0.066 258.5);
Tailwind
colors: {
  custom: {
    50: '#4e556f',
    500: '#051938',
    950: '#000000',
  },
}
SCSS
$custom: #051938;
$custom-light: #4e556f;
$custom-dark: #000000;
JSON
{
  "hex": "#051938",
  "rgb": {
    "r": 5,
    "g": 25,
    "b": 56
  },
  "hsl": {
    "h": 216.471,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21812,
    "c": 0.06604,
    "h": 258.5
  },
  "luminance": 0.01013
}

Semantic roles & 50–950 ramp

primary
#051938
secondary
#795620
accent
#AA2EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #051938

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

Preview Lab → · Contrast checker → · Palette generator →

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