#050C31#050C31

#050C31 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.8% C 0.074 H 268.2°. Best body text is #FFFFFF at 19.03:1 contrast (WCAG AA passes).

Color values

HEX#050C31
RGBrgb(5, 12, 49)
HSLhsl(230, 81%, 11%)
HSVhsv(230, 90%, 19%)
CMYKcmyk(89.8%, 75.5%, 0%, 80.8%)
CIE-LABlab(4.67, 10.52, -24.54)
CIE-LCHlch(4.67, 26.70, 293.21°)
OKLaboklab(17.8% -0.0024 -0.074)
OKLCHoklch(17.8% 0.074 268.2)
XYZxyz(0.7482, 0.5169, 2.9655)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050C31 #312A05
analogous
#052231 #050C31 #140531
triadic
#050C31 #31050C #0C3105
tetradic
#050C31 #310522 #312A05 #053114
square
#050C31 #310522 #312A05 #053114
split-complementary
#050C31 #311405 #223105
monochromatic
#03071C #03071C #050C31 #0B1A69 #1027A0

Accessibility & contrast

On white

19.03
#050C31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#050C31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050C31
19.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050C31#FFFFFF#000000##FFFFFF
##050C311.0019.031.1019.03
#FFFFFF19.031.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001232
Deuteranopia (green-blind)
#000E30
Tritanopia (blue-blind)
#00161C
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #050c31;
/* rgb */ color: rgb(5, 12, 49);
/* oklch */ color: oklch(17.8% 0.074 268.2);
Tailwind
colors: {
  custom: {
    50: '#4c4c69',
    500: '#050c31',
    950: '#000000',
  },
}
SCSS
$custom: #050c31;
$custom-light: #4c4c69;
$custom-dark: #000000;
JSON
{
  "hex": "#050c31",
  "rgb": {
    "r": 5,
    "g": 12,
    "b": 49
  },
  "hsl": {
    "h": 230.455,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.17797,
    "c": 0.07406,
    "h": 268.2
  },
  "luminance": 0.00517
}

Semantic roles & 50–950 ramp

primary
#050C31
secondary
#72651F
accent
#D830F8
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #050C31

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

Preview Lab → · Contrast checker → · Palette generator →

#050C31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva