#051235#051235

#051235 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.7% C 0.072 H 264.3°. Best body text is #FFFFFF at 18.35:1 contrast (WCAG AA passes).

Color values

HEX#051235
RGBrgb(5, 18, 53)
HSLhsl(224, 83%, 11%)
HSVhsv(224, 91%, 21%)
CMYKcmyk(90.6%, 66%, 0%, 79.2%)
CIE-LABlab(6.52, 9.54, -24.51)
CIE-LCHlch(6.52, 26.30, 291.27°)
OKLaboklab(19.69% -0.0072 -0.0712)
OKLCHoklch(19.69% 0.072 264.3)
XYZxyz(0.9213, 0.7218, 3.4582)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051235 #352805
analogous
#052A35 #051235 #100535
triadic
#051235 #350512 #123505
tetradic
#051235 #35052A #352805 #053510
square
#051235 #35052A #352805 #053510
split-complementary
#051235 #351005 #2A3505
monochromatic
#03091C #03091C #051235 #0A256D #1038A5

Accessibility & contrast

On white

18.35
#051235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#051235 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051235
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051235#FFFFFF#000000##FFFFFF
##0512351.0018.351.1418.35
#FFFFFF18.351.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001736
Deuteranopia (green-blind)
#001234
Tritanopia (blue-blind)
#001B21
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #051235;
/* rgb */ color: rgb(5, 18, 53);
/* oklch */ color: oklch(19.7% 0.072 264.3);
Tailwind
colors: {
  custom: {
    50: '#4d4f6c',
    500: '#051235',
    950: '#000000',
  },
}
SCSS
$custom: #051235;
$custom-light: #4d4f6c;
$custom-dark: #000000;
JSON
{
  "hex": "#051235",
  "rgb": {
    "r": 5,
    "g": 18,
    "b": 53
  },
  "hsl": {
    "h": 223.75,
    "s": 82.759,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19686,
    "c": 0.07161,
    "h": 264.3
  },
  "luminance": 0.00722
}

Semantic roles & 50–950 ramp

primary
#051235
secondary
#765F20
accent
#C22FF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #051235

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

Preview Lab → · Contrast checker → · Palette generator →

#051235 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva