#0A0C4A#0A0C4A

#0A0C4A is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.2% C 0.110 H 270.8°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#0A0C4A
RGBrgb(10, 12, 74)
HSLhsl(238, 76%, 16%)
HSVhsv(238, 86%, 29%)
CMYKcmyk(86.5%, 83.8%, 0%, 71%)
CIE-LABlab(7.42, 24.24, -38.01)
CIE-LCHlch(7.42, 45.08, 302.53°)
OKLaboklab(21.21% 0.0016 -0.1101)
OKLCHoklch(21.21% 0.11 270.8)
XYZxyz(1.4923, 0.8217, 6.5572)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A0C4A #4A480A
analogous
#0A2C4A #0A0C4A #280A4A
triadic
#0A0C4A #4A0A0C #0C4A0A
tetradic
#0A0C4A #4A0A2C #4A480A #0A4A28
square
#0A0C4A #4A0A2C #4A480A #0A4A28
split-complementary
#0A0C4A #4A280A #2C4A0A
monochromatic
#04041B #04041B #0A0C4A #111580 #191DB6

Accessibility & contrast

On white

18.04
#0A0C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0A0C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0A0C4A
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A0C4A#FFFFFF#000000##FFFFFF
##0A0C4A1.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4C
Deuteranopia (green-blind)
#001349
Tritanopia (blue-blind)
#001E2A
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0a0c4a;
/* rgb */ color: rgb(10, 12, 74);
/* oklch */ color: oklch(21.2% 0.110 270.8);
Tailwind
colors: {
  custom: {
    50: '#574b7d',
    500: '#0a0c4a',
    950: '#000000',
  },
}
SCSS
$custom: #0a0c4a;
$custom-light: #574b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#0a0c4a",
  "rgb": {
    "r": 10,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 238.125,
    "s": 76.19,
    "l": 16.471
  },
  "oklch": {
    "l": 0.21211,
    "c": 0.11015,
    "h": 270.8
  },
  "luminance": 0.00822
}

Semantic roles & 50–950 ramp

primary
#0A0C4A
secondary
#878429
accent
#ED35F3
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0A0C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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