#0C082E#0C082E

#0C082E is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 17.2% C 0.073 H 280.4°. Best body text is #FFFFFF at 19.27:1 contrast (WCAG AA passes).

Color values

HEX#0C082E
RGBrgb(12, 8, 46)
HSLhsl(246, 70%, 11%)
HSVhsv(246, 83%, 18%)
CMYKcmyk(73.9%, 82.6%, 0%, 82%)
CIE-LABlab(4.06, 12.48, -23.25)
CIE-LCHlch(4.06, 26.39, 298.22°)
OKLaboklab(17.19% 0.0131 -0.0716)
OKLCHoklch(17.19% 0.073 280.4)
XYZxyz(0.7314, 0.4490, 2.6324)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C082E #2A2E08
analogous
#08172E #0C082E #1F082E
triadic
#0C082E #2E0C08 #082E0C
tetradic
#0C082E #2E0817 #2A2E08 #082E1F
square
#0C082E #2E0817 #2A2E08 #082E1F
split-complementary
#0C082E #2E1F08 #172E08
monochromatic
#07051A #07051A #0C082E #1A1162 #271A96

Accessibility & contrast

On white

19.27
#0C082E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#0C082E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C082E
19.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C082E#FFFFFF#000000##FFFFFF
##0C082E1.0019.271.0919.27
#FFFFFF19.271.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102F
Deuteranopia (green-blind)
#000D2D
Tritanopia (blue-blind)
#001219
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0c082e;
/* rgb */ color: rgb(12, 8, 46);
/* oklch */ color: oklch(17.2% 0.073 280.4);
Tailwind
colors: {
  custom: {
    50: '#4e4a67',
    500: '#0c082e',
    950: '#000000',
  },
}
SCSS
$custom: #0c082e;
$custom-light: #4e4a67;
$custom-dark: #000000;
JSON
{
  "hex": "#0c082e",
  "rgb": {
    "r": 12,
    "g": 8,
    "b": 46
  },
  "hsl": {
    "h": 246.316,
    "s": 70.37,
    "l": 10.588
  },
  "oklch": {
    "l": 0.17189,
    "c": 0.07275,
    "h": 280.4
  },
  "luminance": 0.00449
}

Semantic roles & 50–950 ramp

primary
#0C082E
secondary
#656D25
accent
#ED3BDA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C082E

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

Preview Lab → · Contrast checker → · Palette generator →

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