#050938#050938

#050938 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.0% C 0.089 H 269.3°. Best body text is #FFFFFF at 19.05:1 contrast (WCAG AA passes).

Color values

HEX#050938
RGBrgb(5, 9, 56)
HSLhsl(235, 84%, 12%)
HSVhsv(235, 91%, 22%)
CMYKcmyk(91.1%, 83.9%, 0%, 78%)
CIE-LABlab(4.63, 15.80, -29.74)
CIE-LCHlch(4.63, 33.68, 297.98°)
OKLaboklab(18.01% -0.0012 -0.0893)
OKLCHoklch(18.01% 0.089 269.3)
XYZxyz(0.8738, 0.5131, 3.7936)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050938 #383405
analogous
#052338 #050938 #1B0538
triadic
#050938 #380509 #093805
tetradic
#050938 #380523 #383405 #05381B
square
#050938 #380523 #383405 #05381B
split-complementary
#050938 #381B05 #233805
monochromatic
#03051C #03051C #050938 #0A1270 #0F1BA8

Accessibility & contrast

On white

19.05
#050938 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#050938 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050938
19.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050938#FFFFFF#000000##FFFFFF
##0509381.0019.051.1019.05
#FFFFFF19.051.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001239
Deuteranopia (green-blind)
#000D37
Tritanopia (blue-blind)
#00161F
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #050938;
/* rgb */ color: rgb(5, 9, 56);
/* oklch */ color: oklch(18.0% 0.089 269.3);
Tailwind
colors: {
  custom: {
    50: '#4e4a6f',
    500: '#050938',
    950: '#000000',
  },
}
SCSS
$custom: #050938;
$custom-light: #4e4a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#050938",
  "rgb": {
    "r": 5,
    "g": 9,
    "b": 56
  },
  "hsl": {
    "h": 235.294,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.18011,
    "c": 0.08932,
    "h": 269.3
  },
  "luminance": 0.00513
}

Semantic roles & 50–950 ramp

primary
#050938
secondary
#797220
accent
#EA2EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #050938

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

Preview Lab → · Contrast checker → · Palette generator →

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