#05123C#05123C

#05123C is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.4% C 0.083 H 265.3°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#05123C
RGBrgb(5, 18, 60)
HSLhsl(226, 85%, 13%)
HSVhsv(226, 92%, 24%)
CMYKcmyk(91.7%, 70%, 0%, 76.5%)
CIE-LABlab(7.14, 13.14, -28.57)
CIE-LCHlch(7.14, 31.44, 294.69°)
OKLaboklab(20.42% -0.0068 -0.0828)
OKLCHoklch(20.42% 0.083 265.3)
XYZxyz(1.0942, 0.7910, 4.3691)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05123C #3C2F05
analogous
#052D3C #05123C #13053C
triadic
#05123C #3C0512 #123C05
tetradic
#05123C #3C052D #3C2F05 #053C13
square
#05123C #3C052D #3C2F05 #053C13
split-complementary
#05123C #3C1305 #2D3C05
monochromatic
#02081C #02081C #05123C #0A2374 #0E34AD

Accessibility & contrast

On white

18.13
#05123C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#05123C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05123C
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05123C#FFFFFF#000000##FFFFFF
##05123C1.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)
#00183D
Deuteranopia (green-blind)
#00133B
Tritanopia (blue-blind)
#001D24
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #05123c;
/* rgb */ color: rgb(5, 18, 60);
/* oklch */ color: oklch(20.4% 0.083 265.3);
Tailwind
colors: {
  custom: {
    50: '#504f72',
    500: '#05123c',
    950: '#000000',
  },
}
SCSS
$custom: #05123c;
$custom-light: #504f72;
$custom-dark: #000000;
JSON
{
  "hex": "#05123c",
  "rgb": {
    "r": 5,
    "g": 18,
    "b": 60
  },
  "hsl": {
    "h": 225.818,
    "s": 84.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.20423,
    "c": 0.08308,
    "h": 265.3
  },
  "luminance": 0.00791
}

Semantic roles & 50–950 ramp

primary
#05123C
secondary
#7D6720
accent
#CA2DFB
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020108
muted
#78777B

Preview Lab

Preview with #05123C

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

Preview Lab → · Contrast checker → · Palette generator →

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