#050C2E#050C2E

#050C2E is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.5% C 0.069 H 268.1°. Best body text is #FFFFFF at 19.12:1 contrast (WCAG AA passes).

Color values

HEX#050C2E
RGBrgb(5, 12, 46)
HSLhsl(230, 80%, 10%)
HSVhsv(230, 89%, 18%)
CMYKcmyk(89.1%, 73.9%, 0%, 82%)
CIE-LABlab(4.45, 8.97, -22.65)
CIE-LCHlch(4.45, 24.37, 291.60°)
OKLaboklab(17.46% -0.0023 -0.069)
OKLCHoklch(17.46% 0.069 268.1)
XYZxyz(0.6870, 0.4924, 2.6431)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050C2E #2E2705
analogous
#05212E #050C2E #12052E
triadic
#050C2E #2E050C #0C2E05
tetradic
#050C2E #2E0521 #2E2705 #052E12
square
#050C2E #2E0521 #2E2705 #052E12
split-complementary
#050C2E #2E1205 #212E05
monochromatic
#03071C #03071C #050C2E #0B1A65 #11299C

Accessibility & contrast

On white

19.12
#050C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050C2E
19.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050C2E#FFFFFF#000000##FFFFFF
##050C2E1.0019.121.1019.12
#FFFFFF19.121.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112F
Deuteranopia (green-blind)
#000D2D
Tritanopia (blue-blind)
#00151B
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #050c2e;
/* rgb */ color: rgb(5, 12, 46);
/* oklch */ color: oklch(17.5% 0.069 268.1);
Tailwind
colors: {
  custom: {
    50: '#4b4c67',
    500: '#050c2e',
    950: '#000000',
  },
}
SCSS
$custom: #050c2e;
$custom-light: #4b4c67;
$custom-dark: #000000;
JSON
{
  "hex": "#050c2e",
  "rgb": {
    "r": 5,
    "g": 12,
    "b": 46
  },
  "hsl": {
    "h": 229.756,
    "s": 80.392,
    "l": 10
  },
  "oklch": {
    "l": 0.17459,
    "c": 0.06904,
    "h": 268.1
  },
  "luminance": 0.00492
}

Semantic roles & 50–950 ramp

primary
#050C2E
secondary
#70621F
accent
#D531F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #050C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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