#050338#050338

#050338 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.7% C 0.098 H 271.0°. Best body text is #FFFFFF at 19.51:1 contrast (WCAG AA passes).

Color values

HEX#050338
RGBrgb(5, 3, 56)
HSLhsl(242, 90%, 12%)
HSVhsv(242, 95%, 22%)
CMYKcmyk(91.1%, 94.6%, 0%, 78%)
CIE-LABlab(3.46, 18.22, -31.65)
CIE-LCHlch(3.46, 36.52, 299.93°)
OKLaboklab(16.7% 0.0018 -0.0981)
OKLCHoklch(16.7% 0.098 271)
XYZxyz(0.8087, 0.3828, 3.7719)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050338 #363803
analogous
#031C38 #050338 #200338
triadic
#050338 #380503 #033805
tetradic
#050338 #38031C #363803 #033820
square
#050338 #38031C #363803 #033820
split-complementary
#050338 #382003 #1C3803
monochromatic
#03021D #03021D #050338 #0A0672 #0F09AC

Accessibility & contrast

On white

19.51
#050338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#050338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050338
19.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050338#FFFFFF#000000##FFFFFF
##0503381.0019.511.0819.51
#FFFFFF19.511.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F39
Deuteranopia (green-blind)
#000A37
Tritanopia (blue-blind)
#00131E
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #050338;
/* rgb */ color: rgb(5, 3, 56);
/* oklch */ color: oklch(16.7% 0.098 271.0);
Tailwind
colors: {
  custom: {
    50: '#4e476f',
    500: '#050338',
    950: '#000000',
  },
}
SCSS
$custom: #050338;
$custom-light: #4e476f;
$custom-dark: #000000;
JSON
{
  "hex": "#050338",
  "rgb": {
    "r": 5,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 242.264,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.16704,
    "c": 0.09812,
    "h": 271
  },
  "luminance": 0.00383
}

Semantic roles & 50–950 ramp

primary
#050338
secondary
#777B1C
accent
#FF29F7
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#020007
muted
#78777A

Preview Lab

Preview with #050338

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

Preview Lab → · Contrast checker → · Palette generator →

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