#0C0741#0C0741

#0C0741 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.4% C 0.102 H 275.1°. Best body text is #FFFFFF at 18.71:1 contrast (WCAG AA passes).

Color values

HEX#0C0741
RGBrgb(12, 7, 65)
HSLhsl(245, 81%, 14%)
HSVhsv(245, 89%, 25%)
CMYKcmyk(81.5%, 89.2%, 0%, 74.5%)
CIE-LABlab(5.53, 23.04, -34.77)
CIE-LCHlch(5.53, 41.71, 303.53°)
OKLaboklab(19.36% 0.009 -0.1021)
OKLCHoklch(19.36% 0.103 275.1)
XYZxyz(1.1814, 0.6117, 5.0558)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0741 #3C4107
analogous
#071F41 #0C0741 #290741
triadic
#0C0741 #410C07 #07410C
tetradic
#0C0741 #41071F #3C4107 #074129
square
#0C0741 #41071F #3C4107 #074129
split-complementary
#0C0741 #412907 #1F4107
monochromatic
#05031C #05031C #0C0741 #160D78 #2013B0

Accessibility & contrast

On white

18.71
#0C0741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#0C0741 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0741
18.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0741#FFFFFF#000000##FFFFFF
##0C07411.0018.711.1218.71
#FFFFFF18.711.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001543
Deuteranopia (green-blind)
#000F40
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #0c0741;
/* rgb */ color: rgb(12, 7, 65);
/* oklch */ color: oklch(19.4% 0.102 275.1);
Tailwind
colors: {
  custom: {
    50: '#554876',
    500: '#0c0741',
    950: '#000000',
  },
}
SCSS
$custom: #0c0741;
$custom-light: #554876;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0741",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 65
  },
  "hsl": {
    "h": 245.172,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.19362,
    "c": 0.1025,
    "h": 275.1
  },
  "luminance": 0.00612
}

Semantic roles & 50–950 ramp

primary
#0C0741
secondary
#788024
accent
#F731E6
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0C0741

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

Preview Lab → · Contrast checker → · Palette generator →

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