#05113F#05113F

#05113F is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.5% C 0.089 H 266.0°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#05113F
RGBrgb(5, 17, 63)
HSLhsl(228, 85%, 13%)
HSVhsv(228, 92%, 25%)
CMYKcmyk(92.1%, 73%, 0%, 75.3%)
CIE-LABlab(7.15, 15.32, -30.70)
CIE-LCHlch(7.15, 34.31, 296.51°)
OKLaboklab(20.53% -0.0062 -0.0891)
OKLCHoklch(20.53% 0.089 266)
XYZxyz(1.1599, 0.7919, 4.7934)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05113F #3F3305
analogous
#052E3F #05113F #16053F
triadic
#05113F #3F0511 #113F05
tetradic
#05113F #3F052E #3F3305 #053F16
square
#05113F #3F052E #3F3305 #053F16
split-complementary
#05113F #3F1605 #2E3F05
monochromatic
#02081C #02081C #05113F #092078 #0E30B0

Accessibility & contrast

On white

18.13
#05113F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#05113F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05113F
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05113F#FFFFFF#000000##FFFFFF
##05113F1.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001940
Deuteranopia (green-blind)
#00133E
Tritanopia (blue-blind)
#001D26
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #05113f;
/* rgb */ color: rgb(5, 17, 63);
/* oklch */ color: oklch(20.5% 0.089 266.0);
Tailwind
colors: {
  custom: {
    50: '#514e75',
    500: '#05113f',
    950: '#000000',
  },
}
SCSS
$custom: #05113f;
$custom-light: #514e75;
$custom-dark: #000000;
JSON
{
  "hex": "#05113f",
  "rgb": {
    "r": 5,
    "g": 17,
    "b": 63
  },
  "hsl": {
    "h": 227.586,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20527,
    "c": 0.08927,
    "h": 266
  },
  "luminance": 0.00792
}

Semantic roles & 50–950 ramp

primary
#05113F
secondary
#806C20
accent
#D12CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020108
muted
#78777B

Preview Lab

Preview with #05113F

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

Preview Lab → · Contrast checker → · Palette generator →

#05113F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva