#05103F#05103F

#05103F is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.3% C 0.091 H 266.5°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#05103F
RGBrgb(5, 16, 63)
HSLhsl(229, 85%, 13%)
HSVhsv(229, 92%, 25%)
CMYKcmyk(92.1%, 74.6%, 0%, 75.3%)
CIE-LABlab(6.88, 15.99, -31.15)
CIE-LCHlch(6.88, 35.01, 297.18°)
OKLaboklab(20.31% -0.0056 -0.0905)
OKLCHoklch(20.31% 0.091 266.5)
XYZxyz(1.1448, 0.7616, 4.7883)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05103F #3F3405
analogous
#052D3F #05103F #17053F
triadic
#05103F #3F0510 #103F05
tetradic
#05103F #3F052D #3F3405 #053F17
square
#05103F #3F052D #3F3405 #053F17
split-complementary
#05103F #3F1705 #2D3F05
monochromatic
#02071C #02071C #05103F #091E78 #0E2DB0

Accessibility & contrast

On white

18.22
#05103F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#05103F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05103F
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05103F#FFFFFF#000000##FFFFFF
##05103F1.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #05103f;
/* rgb */ color: rgb(5, 16, 63);
/* oklch */ color: oklch(20.3% 0.091 266.5);
Tailwind
colors: {
  custom: {
    50: '#514d75',
    500: '#05103f',
    950: '#000000',
  },
}
SCSS
$custom: #05103f;
$custom-light: #514d75;
$custom-dark: #000000;
JSON
{
  "hex": "#05103f",
  "rgb": {
    "r": 5,
    "g": 16,
    "b": 63
  },
  "hsl": {
    "h": 228.621,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20307,
    "c": 0.09067,
    "h": 266.5
  },
  "luminance": 0.00762
}

Semantic roles & 50–950 ramp

primary
#05103F
secondary
#806E20
accent
#D42CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020108
muted
#78777B

Preview Lab

Preview with #05103F

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

Preview Lab → · Contrast checker → · Palette generator →

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