#0C0D38#0C0D38

#0C0D38 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.4% C 0.081 H 274.7°. Best body text is #FFFFFF at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#0C0D38
RGBrgb(12, 13, 56)
HSLhsl(239, 65%, 13%)
HSVhsv(239, 79%, 22%)
CMYKcmyk(78.6%, 76.8%, 0%, 78%)
CIE-LABlab(5.88, 15.56, -27.70)
CIE-LCHlch(5.88, 31.78, 299.33°)
OKLaboklab(19.36% 0.0067 -0.0811)
OKLCHoklch(19.36% 0.081 274.7)
XYZxyz(1.0091, 0.6514, 3.8132)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D38 #38370C
analogous
#0C2338 #0C0D38 #210C38
triadic
#0C0D38 #380C0D #0D380C
tetradic
#0C0D38 #380C23 #38370C #0C3821
square
#0C0D38 #380C23 #38370C #0C3821
split-complementary
#0C0D38 #38210C #23380C
monochromatic
#050619 #050619 #0C0D38 #17196A #22249D

Accessibility & contrast

On white

18.58
#0C0D38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#0C0D38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0D38
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D38#FFFFFF#000000##FFFFFF
##0C0D381.0018.581.1318.58
#FFFFFF18.581.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001137
Tritanopia (blue-blind)
#001820
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0c0d38;
/* rgb */ color: rgb(12, 13, 56);
/* oklch */ color: oklch(19.4% 0.081 274.7);
Tailwind
colors: {
  custom: {
    50: '#524c6f',
    500: '#0c0d38',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d38;
$custom-light: #524c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d38",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 56
  },
  "hsl": {
    "h": 238.636,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.19356,
    "c": 0.08135,
    "h": 274.7
  },
  "luminance": 0.00652
}

Semantic roles & 50–950 ramp

primary
#0C0D38
secondary
#74722C
accent
#E440E8
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #0C0D38

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

Preview Lab → · Contrast checker → · Palette generator →

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