#050F3F#050F3F

#050F3F is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.1% C 0.092 H 266.9°. Best body text is #FFFFFF at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#050F3F
RGBrgb(5, 15, 63)
HSLhsl(230, 85%, 13%)
HSVhsv(230, 92%, 25%)
CMYKcmyk(92.1%, 76.2%, 0%, 75.3%)
CIE-LABlab(6.62, 16.63, -31.57)
CIE-LCHlch(6.62, 35.69, 297.78°)
OKLaboklab(20.09% -0.005 -0.0919)
OKLCHoklch(20.09% 0.092 266.9)
XYZxyz(1.1303, 0.7327, 4.7835)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050F3F #3F3505
analogous
#052C3F #050F3F #18053F
triadic
#050F3F #3F050F #0F3F05
tetradic
#050F3F #3F052C #3F3505 #053F18
square
#050F3F #3F052C #3F3505 #053F18
split-complementary
#050F3F #3F1805 #2C3F05
monochromatic
#02071C #02071C #050F3F #091C78 #0E2AB0

Accessibility & contrast

On white

18.32
#050F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#050F3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050F3F
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050F3F#FFFFFF#000000##FFFFFF
##050F3F1.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001840
Deuteranopia (green-blind)
#00123E
Tritanopia (blue-blind)
#001C25
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #050f3f;
/* rgb */ color: rgb(5, 15, 63);
/* oklch */ color: oklch(20.1% 0.092 266.9);
Tailwind
colors: {
  custom: {
    50: '#514d75',
    500: '#050f3f',
    950: '#000000',
  },
}
SCSS
$custom: #050f3f;
$custom-light: #514d75;
$custom-dark: #000000;
JSON
{
  "hex": "#050f3f",
  "rgb": {
    "r": 5,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 229.655,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20093,
    "c": 0.09206,
    "h": 266.9
  },
  "luminance": 0.00733
}

Semantic roles & 50–950 ramp

primary
#050F3F
secondary
#806F20
accent
#D82CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #050F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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