#0C063E#0C063E

#0C063E is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.8% C 0.100 H 276.1°. Best body text is #FFFFFF at 18.90:1 contrast (WCAG AA passes).

Color values

HEX#0C063E
RGBrgb(12, 6, 62)
HSLhsl(246, 82%, 13%)
HSVhsv(246, 90%, 24%)
CMYKcmyk(80.6%, 90.3%, 0%, 75.7%)
CIE-LABlab(5.02, 22.00, -33.44)
CIE-LCHlch(5.02, 40.03, 303.34°)
OKLaboklab(18.78% 0.0106 -0.099)
OKLCHoklch(18.78% 0.1 276.1)
XYZxyz(1.0860, 0.5561, 4.6066)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C063E #383E06
analogous
#061C3E #0C063E #28063E
triadic
#0C063E #3E0C06 #063E0C
tetradic
#0C063E #3E061C #383E06 #063E28
square
#0C063E #3E061C #383E06 #063E28
split-complementary
#0C063E #3E2806 #1C3E06
monochromatic
#05031C #05031C #0C063E #170B76 #2211AE

Accessibility & contrast

On white

18.90
#0C063E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#0C063E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C063E
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C063E#FFFFFF#000000##FFFFFF
##0C063E1.0018.901.1118.90
#FFFFFF18.901.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001340
Deuteranopia (green-blind)
#000E3D
Tritanopia (blue-blind)
#001722
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0c063e;
/* rgb */ color: rgb(12, 6, 62);
/* oklch */ color: oklch(18.8% 0.100 276.1);
Tailwind
colors: {
  custom: {
    50: '#544874',
    500: '#0c063e',
    950: '#000000',
  },
}
SCSS
$custom: #0c063e;
$custom-light: #544874;
$custom-dark: #000000;
JSON
{
  "hex": "#0c063e",
  "rgb": {
    "r": 12,
    "g": 6,
    "b": 62
  },
  "hsl": {
    "h": 246.429,
    "s": 82.353,
    "l": 13.333
  },
  "oklch": {
    "l": 0.18783,
    "c": 0.09959,
    "h": 276.1
  },
  "luminance": 0.00556
}

Semantic roles & 50–950 ramp

primary
#0C063E
secondary
#747E22
accent
#F92FE3
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0C063E

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

Preview Lab → · Contrast checker → · Palette generator →

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