#0C074E#0C074E

#0C074E is a very dark, vivid blue. Relative luminance 0.008; OKLCH L 21.1% C 0.120 H 272.4°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#0C074E
RGBrgb(12, 7, 78)
HSLhsl(244, 84%, 17%)
HSVhsv(244, 91%, 31%)
CMYKcmyk(84.6%, 91%, 0%, 69.4%)
CIE-LABlab(7.05, 28.87, -41.41)
CIE-LCHlch(7.05, 50.48, 304.88°)
OKLaboklab(21.12% 0.0051 -0.12)
OKLCHoklch(21.12% 0.12 272.4)
XYZxyz(1.6023, 0.7800, 7.2724)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C074E #494E07
analogous
#07264E #0C074E #30074E
triadic
#0C074E #4E0C07 #074E0C
tetradic
#0C074E #4E0726 #494E07 #074E30
square
#0C074E #4E0726 #494E07 #074E30
split-complementary
#0C074E #4E3007 #264E07
monochromatic
#04031C #04031C #0C074E #150C86 #1D11BE

Accessibility & contrast

On white

18.17
#0C074E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0C074E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C074E
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C074E#FFFFFF#000000##FFFFFF
##0C074E1.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001950
Deuteranopia (green-blind)
#00124D
Tritanopia (blue-blind)
#001E2B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c074e;
/* rgb */ color: rgb(12, 7, 78);
/* oklch */ color: oklch(21.1% 0.120 272.4);
Tailwind
colors: {
  custom: {
    50: '#5a4981',
    500: '#0c074e',
    950: '#000000',
  },
}
SCSS
$custom: #0c074e;
$custom-light: #5a4981;
$custom-dark: #000000;
JSON
{
  "hex": "#0c074e",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 78
  },
  "hsl": {
    "h": 244.225,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.21121,
    "c": 0.12011,
    "h": 272.4
  },
  "luminance": 0.0078
}

Semantic roles & 50–950 ramp

primary
#0C074E
secondary
#858C25
accent
#FA2EEB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0C074E

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

Preview Lab → · Contrast checker → · Palette generator →

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