#0C0740#0C0740

#0C0740 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.2% C 0.101 H 275.3°. Best body text is #FFFFFF at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#0C0740
RGBrgb(12, 7, 64)
HSLhsl(245, 80%, 14%)
HSVhsv(245, 89%, 25%)
CMYKcmyk(81.2%, 89.1%, 0%, 74.9%)
CIE-LABlab(5.42, 22.54, -34.23)
CIE-LCHlch(5.42, 40.98, 303.37°)
OKLaboklab(19.23% 0.0093 -0.1007)
OKLCHoklch(19.23% 0.101 275.3)
XYZxyz(1.1527, 0.6002, 4.9046)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0740 #3B4007
analogous
#071F40 #0C0740 #290740
triadic
#0C0740 #400C07 #07400C
tetradic
#0C0740 #40071F #3B4007 #074029
square
#0C0740 #40071F #3B4007 #074029
split-complementary
#0C0740 #402907 #1F4007
monochromatic
#05031C #05031C #0C0740 #160D77 #2113AE

Accessibility & contrast

On white

18.75
#0C0740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0740
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0740#FFFFFF#000000##FFFFFF
##0C07401.0018.751.1218.75
#FFFFFF18.751.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#000F3F
Tritanopia (blue-blind)
#001823
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #0c0740;
/* rgb */ color: rgb(12, 7, 64);
/* oklch */ color: oklch(19.2% 0.101 275.3);
Tailwind
colors: {
  custom: {
    50: '#554976',
    500: '#0c0740',
    950: '#000000',
  },
}
SCSS
$custom: #0c0740;
$custom-light: #554976;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0740",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 245.263,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.19229,
    "c": 0.1011,
    "h": 275.3
  },
  "luminance": 0.006
}

Semantic roles & 50–950 ramp

primary
#0C0740
secondary
#777F24
accent
#F731E5
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0C0740

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

Preview Lab → · Contrast checker → · Palette generator →

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