#0A1242#0A1242

#0A1242 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.091 H 269.5°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#0A1242
RGBrgb(10, 18, 66)
HSLhsl(231, 74%, 15%)
HSVhsv(231, 85%, 26%)
CMYKcmyk(84.8%, 72.7%, 0%, 74.1%)
CIE-LABlab(8.04, 16.69, -31.37)
CIE-LCHlch(8.04, 35.53, 298.02°)
OKLaboklab(21.39% -0.0008 -0.0907)
OKLCHoklch(21.39% 0.091 269.5)
XYZxyz(1.3245, 0.8903, 5.2552)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A1242 #423A0A
analogous
#0A2E42 #0A1242 #1E0A42
triadic
#0A1242 #420A12 #12420A
tetradic
#0A1242 #420A2E #423A0A #0A421E
square
#0A1242 #420A2E #423A0A #0A421E
split-complementary
#0A1242 #421E0A #2E420A
monochromatic
#04071B #04071B #0A1242 #122077 #1A2FAC

Accessibility & contrast

On white

17.83
#0A1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0A1242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0A1242
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A1242#FFFFFF#000000##FFFFFF
##0A12421.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#001F28
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0a1242;
/* rgb */ color: rgb(10, 18, 66);
/* oklch */ color: oklch(21.4% 0.091 269.5);
Tailwind
colors: {
  custom: {
    50: '#544f77',
    500: '#0a1242',
    950: '#000000',
  },
}
SCSS
$custom: #0a1242;
$custom-light: #544f77;
$custom-dark: #000000;
JSON
{
  "hex": "#0a1242",
  "rgb": {
    "r": 10,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 231.429,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21387,
    "c": 0.0907,
    "h": 269.5
  },
  "luminance": 0.0089
}

Semantic roles & 50–950 ramp

primary
#0A1242
secondary
#7F7329
accent
#D637F0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0A1242

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

Preview Lab → · Contrast checker → · Palette generator →

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