#0A0C48#0A0C48

#0A0C48 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.0% C 0.107 H 271.0°. Best body text is #FFFFFF at 18.12:1 contrast (WCAG AA passes).

Color values

HEX#0A0C48
RGBrgb(10, 12, 72)
HSLhsl(238, 76%, 16%)
HSVhsv(238, 86%, 28%)
CMYKcmyk(86.1%, 83.3%, 0%, 71.8%)
CIE-LABlab(7.18, 23.39, -37.01)
CIE-LCHlch(7.18, 43.78, 302.29°)
OKLaboklab(20.96% 0.002 -0.1073)
OKLCHoklch(20.96% 0.107 271)
XYZxyz(1.4259, 0.7952, 6.2080)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A0C48 #48460A
analogous
#0A2B48 #0A0C48 #270A48
triadic
#0A0C48 #480A0C #0C480A
tetradic
#0A0C48 #480A2B #48460A #0A4827
square
#0A0C48 #480A2B #48460A #0A4827
split-complementary
#0A0C48 #48270A #2B480A
monochromatic
#04041B #04041B #0A0C48 #11157E #191EB3

Accessibility & contrast

On white

18.12
#0A0C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0A0C48
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A0C48#FFFFFF#000000##FFFFFF
##0A0C481.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00194A
Deuteranopia (green-blind)
#001347
Tritanopia (blue-blind)
#001E29
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0a0c48;
/* rgb */ color: rgb(10, 12, 72);
/* oklch */ color: oklch(21.0% 0.107 271.0);
Tailwind
colors: {
  custom: {
    50: '#564b7c',
    500: '#0a0c48',
    950: '#000000',
  },
}
SCSS
$custom: #0a0c48;
$custom-light: #564b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#0a0c48",
  "rgb": {
    "r": 10,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 238.065,
    "s": 75.61,
    "l": 16.078
  },
  "oklch": {
    "l": 0.20955,
    "c": 0.10732,
    "h": 271
  },
  "luminance": 0.00795
}

Semantic roles & 50–950 ramp

primary
#0A0C48
secondary
#858229
accent
#EC36F2
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #0A0C48

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

Preview Lab → · Contrast checker → · Palette generator →

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