#0A1540#0A1540

#0A1540 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.8% C 0.083 H 267.8°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#0A1540
RGBrgb(10, 21, 64)
HSLhsl(228, 73%, 15%)
HSVhsv(228, 84%, 25%)
CMYKcmyk(84.4%, 67.2%, 0%, 74.9%)
CIE-LABlab(8.75, 13.47, -28.80)
CIE-LCHlch(8.75, 31.79, 295.07°)
OKLaboklab(21.85% -0.0032 -0.0831)
OKLCHoklch(21.85% 0.083 267.8)
XYZxyz(1.3184, 0.9709, 4.9674)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A1540 #40350A
analogous
#0A3040 #0A1540 #1A0A40
triadic
#0A1540 #400A15 #15400A
tetradic
#0A1540 #400A30 #40350A #0A401A
square
#0A1540 #400A30 #40350A #0A401A
split-complementary
#0A1540 #401A0A #30400A
monochromatic
#04091A #04091A #0A1540 #122675 #1B38AA

Accessibility & contrast

On white

17.58
#0A1540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0A1540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0A1540
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A1540#FFFFFF#000000##FFFFFF
##0A15401.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#002028
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0a1540;
/* rgb */ color: rgb(10, 21, 64);
/* oklch */ color: oklch(21.8% 0.083 267.8);
Tailwind
colors: {
  custom: {
    50: '#535175',
    500: '#0a1540',
    950: '#000000',
  },
}
SCSS
$custom: #0a1540;
$custom-light: #535175;
$custom-dark: #000000;
JSON
{
  "hex": "#0a1540",
  "rgb": {
    "r": 10,
    "g": 21,
    "b": 64
  },
  "hsl": {
    "h": 227.778,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.21845,
    "c": 0.08319,
    "h": 267.8
  },
  "luminance": 0.00971
}

Semantic roles & 50–950 ramp

primary
#0A1540
secondary
#7D6C29
accent
#CA38F0
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0A1540

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

Preview Lab → · Contrast checker → · Palette generator →

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