#05123A#05123A

#05123A is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.2% C 0.080 H 265.1°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#05123A
RGBrgb(5, 18, 58)
HSLhsl(225, 84%, 12%)
HSVhsv(225, 91%, 23%)
CMYKcmyk(91.4%, 69%, 0%, 77.3%)
CIE-LABlab(6.96, 12.13, -27.43)
CIE-LCHlch(6.96, 29.99, 293.86°)
OKLaboklab(20.21% -0.0069 -0.0795)
OKLCHoklch(20.21% 0.08 265.1)
XYZxyz(1.0423, 0.7702, 4.0959)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05123A #3A2D05
analogous
#052D3A #05123A #13053A
triadic
#05123A #3A0512 #123A05
tetradic
#05123A #3A052D #3A2D05 #053A13
square
#05123A #3A052D #3A2D05 #053A13
split-complementary
#05123A #3A1305 #2D3A05
monochromatic
#02091C #02091C #05123A #0A2372 #0F35AB

Accessibility & contrast

On white

18.20
#05123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#05123A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05123A
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05123A#FFFFFF#000000##FFFFFF
##05123A1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183B
Deuteranopia (green-blind)
#001339
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #05123a;
/* rgb */ color: rgb(5, 18, 58);
/* oklch */ color: oklch(20.2% 0.080 265.1);
Tailwind
colors: {
  custom: {
    50: '#4f4f71',
    500: '#05123a',
    950: '#000000',
  },
}
SCSS
$custom: #05123a;
$custom-light: #4f4f71;
$custom-dark: #000000;
JSON
{
  "hex": "#05123a",
  "rgb": {
    "r": 5,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 225.283,
    "s": 84.127,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20207,
    "c": 0.07985,
    "h": 265.1
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#05123A
secondary
#7B6520
accent
#C82DFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #05123A

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

Preview Lab → · Contrast checker → · Palette generator →

#05123A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva