#05122F#05122F

#05122F is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.1% C 0.061 H 262.6°. Best body text is #FFFFFF at 18.52:1 contrast (WCAG AA passes).

Color values

HEX#05122F
RGBrgb(5, 18, 47)
HSLhsl(221, 81%, 10%)
HSVhsv(221, 89%, 18%)
CMYKcmyk(89.4%, 61.7%, 0%, 81.6%)
CIE-LABlab(6.05, 6.35, -20.85)
CIE-LCHlch(6.05, 21.79, 286.94°)
OKLaboklab(19.1% -0.0079 -0.0609)
OKLCHoklch(19.1% 0.061 262.6)
XYZxyz(0.7918, 0.6700, 2.7764)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05122F #2F2205
analogous
#05272F #05122F #0D052F
triadic
#05122F #2F0512 #122F05
tetradic
#05122F #2F0527 #2F2205 #052F0D
square
#05122F #2F0527 #2F2205 #052F0D
split-complementary
#05122F #2F0D05 #272F05
monochromatic
#030B1C #030B1C #05122F #0B2766 #113C9E

Accessibility & contrast

On white

18.52
#05122F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#05122F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05122F
18.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05122F#FFFFFF#000000##FFFFFF
##05122F1.0018.521.1318.52
#FFFFFF18.521.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031530
Deuteranopia (green-blind)
#00122E
Tritanopia (blue-blind)
#00191E
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #05122f;
/* rgb */ color: rgb(5, 18, 47);
/* oklch */ color: oklch(19.1% 0.061 262.6);
Tailwind
colors: {
  custom: {
    50: '#4b4f68',
    500: '#05122f',
    950: '#000000',
  },
}
SCSS
$custom: #05122f;
$custom-light: #4b4f68;
$custom-dark: #000000;
JSON
{
  "hex": "#05122f",
  "rgb": {
    "r": 5,
    "g": 18,
    "b": 47
  },
  "hsl": {
    "h": 221.429,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19096,
    "c": 0.06139,
    "h": 262.6
  },
  "luminance": 0.0067
}

Semantic roles & 50–950 ramp

primary
#05122F
secondary
#71571F
accent
#BA31F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #05122F

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

Preview Lab → · Contrast checker → · Palette generator →

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