#05123F#05123F

#05123F is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.8% C 0.088 H 265.6°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#05123F
RGBrgb(5, 18, 63)
HSLhsl(227, 85%, 13%)
HSVhsv(227, 92%, 25%)
CMYKcmyk(92.1%, 71.4%, 0%, 75.3%)
CIE-LABlab(7.44, 14.61, -30.23)
CIE-LCHlch(7.44, 33.58, 295.79°)
OKLaboklab(20.75% -0.0068 -0.0876)
OKLCHoklch(20.75% 0.088 265.6)
XYZxyz(1.1758, 0.8236, 4.7987)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05123F #3F3205
analogous
#052F3F #05123F #15053F
triadic
#05123F #3F0512 #123F05
tetradic
#05123F #3F052F #3F3205 #053F15
square
#05123F #3F052F #3F3205 #053F15
split-complementary
#05123F #3F1505 #2F3F05
monochromatic
#02081C #02081C #05123F #092278 #0E32B0

Accessibility & contrast

On white

18.03
#05123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05123F
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05123F#FFFFFF#000000##FFFFFF
##05123F1.0018.031.1618.03
#FFFFFF18.031.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #05123f;
/* rgb */ color: rgb(5, 18, 63);
/* oklch */ color: oklch(20.8% 0.088 265.6);
Tailwind
colors: {
  custom: {
    50: '#514f75',
    500: '#05123f',
    950: '#000000',
  },
}
SCSS
$custom: #05123f;
$custom-light: #514f75;
$custom-dark: #000000;
JSON
{
  "hex": "#05123f",
  "rgb": {
    "r": 5,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 226.552,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20752,
    "c": 0.08785,
    "h": 265.6
  },
  "luminance": 0.00824
}

Semantic roles & 50–950 ramp

primary
#05123F
secondary
#806A20
accent
#CD2CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020108
muted
#78777B

Preview Lab

Preview with #05123F

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

Preview Lab → · Contrast checker → · Palette generator →

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