#0C0D30#0C0D30

#0C0D30 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.5% C 0.068 H 276.2°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#0C0D30
RGBrgb(12, 13, 48)
HSLhsl(238, 60%, 12%)
HSVhsv(238, 75%, 19%)
CMYKcmyk(75%, 72.9%, 0%, 81.2%)
CIE-LABlab(5.23, 11.40, -22.87)
CIE-LCHlch(5.23, 25.55, 296.49°)
OKLaboklab(18.49% 0.0074 -0.0678)
OKLCHoklch(18.49% 0.068 276.2)
XYZxyz(0.8289, 0.5793, 2.8639)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D30 #302F0C
analogous
#0C1F30 #0C0D30 #1D0C30
triadic
#0C0D30 #300C0D #0D300C
tetradic
#0C0D30 #300C1F #302F0C #0C301D
square
#0C0D30 #300C1F #302F0C #0C301D
split-complementary
#0C0D30 #301D0C #1F300C
monochromatic
#060718 #060718 #0C0D30 #181A61 #242892

Accessibility & contrast

On white

18.82
#0C0D30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0D30
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D30#FFFFFF#000000##FFFFFF
##0C0D301.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001331
Deuteranopia (green-blind)
#00102F
Tritanopia (blue-blind)
#00161C
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0c0d30;
/* rgb */ color: rgb(12, 13, 48);
/* oklch */ color: oklch(18.5% 0.068 276.2);
Tailwind
colors: {
  custom: {
    50: '#4f4c68',
    500: '#0c0d30',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d30;
$custom-light: #4f4c68;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d30",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 48
  },
  "hsl": {
    "h": 238.333,
    "s": 60,
    "l": 11.765
  },
  "oklch": {
    "l": 0.1849,
    "c": 0.06819,
    "h": 276.2
  },
  "luminance": 0.00579
}

Semantic roles & 50–950 ramp

primary
#0C0D30
secondary
#6C6A2C
accent
#DF45E3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C0D30

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

Preview Lab → · Contrast checker → · Palette generator →

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