#0C0B4E#0C0B4E

#0C0B4E is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.7% C 0.116 H 271.8°. Best body text is #FFFFFF at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#0C0B4E
RGBrgb(12, 11, 78)
HSLhsl(241, 75%, 17%)
HSVhsv(241, 86%, 31%)
CMYKcmyk(84.6%, 85.9%, 0%, 69.4%)
CIE-LABlab(7.84, 26.62, -40.11)
CIE-LCHlch(7.84, 48.14, 303.58°)
OKLaboklab(21.7% 0.0037 -0.1161)
OKLCHoklch(21.7% 0.116 271.8)
XYZxyz(1.6460, 0.8674, 7.2869)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0B4E #4D4E0B
analogous
#0B2B4E #0C0B4E #2E0B4E
triadic
#0C0B4E #4E0C0B #0B4E0C
tetradic
#0C0B4E #4E0B2B #4D4E0B #0B4E2E
square
#0C0B4E #4E0B2B #4D4E0B #0B4E2E
split-complementary
#0C0B4E #4E2E0B #2B4E0B
monochromatic
#04041B #04041B #0C0B4E #141384 #1D1AB9

Accessibility & contrast

On white

17.89
#0C0B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0C0B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0B4E
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0B4E#FFFFFF#000000##FFFFFF
##0C0B4E1.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A50
Deuteranopia (green-blind)
#00144D
Tritanopia (blue-blind)
#00202C
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0c0b4e;
/* rgb */ color: rgb(12, 11, 78);
/* oklch */ color: oklch(21.7% 0.116 271.8);
Tailwind
colors: {
  custom: {
    50: '#594b80',
    500: '#0c0b4e',
    950: '#000000',
  },
}
SCSS
$custom: #0c0b4e;
$custom-light: #594b80;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0b4e",
  "rgb": {
    "r": 12,
    "g": 11,
    "b": 78
  },
  "hsl": {
    "h": 240.896,
    "s": 75.281,
    "l": 17.451
  },
  "oklch": {
    "l": 0.21697,
    "c": 0.11616,
    "h": 271.8
  },
  "luminance": 0.00868
}

Semantic roles & 50–950 ramp

primary
#0C0B4E
secondary
#898A2B
accent
#F236EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0C0B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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