#0C1751#0C1751

#0C1751 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.2% C 0.106 H 268.4°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#0C1751
RGBrgb(12, 23, 81)
HSLhsl(230, 74%, 18%)
HSVhsv(230, 85%, 32%)
CMYKcmyk(85.2%, 71.6%, 0%, 68.2%)
CIE-LABlab(11.17, 19.60, -36.67)
CIE-LCHlch(11.17, 41.58, 298.12°)
OKLaboklab(24.2% -0.003 -0.1061)
OKLCHoklch(24.2% 0.106 268.4)
XYZxyz(1.9427, 1.2848, 7.9286)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1751 #51460C
analogous
#0C3951 #0C1751 #230C51
triadic
#0C1751 #510C17 #17510C
tetradic
#0C1751 #510C39 #51460C #0C5123
square
#0C1751 #510C39 #51460C #0C5123
split-complementary
#0C1751 #51230C #39510C
monochromatic
#04081B #04081C #0C1751 #142686 #1C35BC

Accessibility & contrast

On white

16.71
#0C1751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#0C1751 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1751
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1751#FFFFFF#000000##FFFFFF
##0C17511.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#001B50
Tritanopia (blue-blind)
#002631
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0c1751;
/* rgb */ color: rgb(12, 23, 81);
/* oklch */ color: oklch(24.2% 0.106 268.4);
Tailwind
colors: {
  custom: {
    50: '#595383',
    500: '#0c1751',
    950: '#000000',
  },
}
SCSS
$custom: #0c1751;
$custom-light: #595383;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1751",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 81
  },
  "hsl": {
    "h": 230.435,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24196,
    "c": 0.10618,
    "h": 268.4
  },
  "luminance": 0.01285
}

Semantic roles & 50–950 ramp

primary
#0C1751
secondary
#8C7D2C
accent
#D337F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C1751

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

Preview Lab → · Contrast checker → · Palette generator →

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