#0A0540#0A0540

#0A0540 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.7% C 0.104 H 274.0°. Best body text is #FFFFFF at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#0A0540
RGBrgb(10, 5, 64)
HSLhsl(245, 86%, 14%)
HSVhsv(245, 92%, 25%)
CMYKcmyk(84.4%, 92.2%, 0%, 74.9%)
CIE-LABlab(4.91, 23.14, -35.08)
CIE-LCHlch(4.91, 42.02, 303.42°)
OKLaboklab(18.71% 0.0073 -0.104)
OKLCHoklch(18.71% 0.104 274)
XYZxyz(1.1046, 0.5431, 4.8961)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A0540 #3B4005
analogous
#051D40 #0A0540 #270540
triadic
#0A0540 #400A05 #05400A
tetradic
#0A0540 #40051D #3B4005 #054027
square
#0A0540 #40051D #3B4005 #054027
split-complementary
#0A0540 #402705 #1D4005
monochromatic
#04021C #04021C #0A0540 #130979 #1C0EB2

Accessibility & contrast

On white

18.94
#0A0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#0A0540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0A0540
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A0540#FFFFFF#000000##FFFFFF
##0A05401.0018.941.1118.94
#FFFFFF18.941.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001342
Deuteranopia (green-blind)
#000E3F
Tritanopia (blue-blind)
#001723
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0a0540;
/* rgb */ color: rgb(10, 5, 64);
/* oklch */ color: oklch(18.7% 0.104 274.0);
Tailwind
colors: {
  custom: {
    50: '#544776',
    500: '#0a0540',
    950: '#000000',
  },
}
SCSS
$custom: #0a0540;
$custom-light: #544776;
$custom-dark: #000000;
JSON
{
  "hex": "#0a0540",
  "rgb": {
    "r": 10,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 245.085,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.18707,
    "c": 0.10426,
    "h": 274
  },
  "luminance": 0.00543
}

Semantic roles & 50–950 ramp

primary
#0A0540
secondary
#788120
accent
#FC2CEA
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0A0540

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

Preview Lab → · Contrast checker → · Palette generator →

#0A0540 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva