#0C1B51#0C1B51

#0C1B51 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.0% C 0.101 H 266.8°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#0C1B51
RGBrgb(12, 27, 81)
HSLhsl(227, 74%, 18%)
HSVhsv(227, 85%, 32%)
CMYKcmyk(85.2%, 66.7%, 0%, 68.2%)
CIE-LABlab(12.32, 16.59, -34.78)
CIE-LCHlch(12.32, 38.54, 295.51°)
OKLaboklab(25.05% -0.0057 -0.1006)
OKLCHoklch(25.05% 0.101 266.8)
XYZxyz(2.0282, 1.4559, 7.9571)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1B51 #51420C
analogous
#0C3D51 #0C1B51 #1F0C51
triadic
#0C1B51 #510C1B #1B510C
tetradic
#0C1B51 #510C3D #51420C #0C511F
square
#0C1B51 #510C3D #51420C #0C511F
split-complementary
#0C1B51 #511F0C #3D510C
monochromatic
#04091B #04091C #0C1B51 #142D86 #1C3FBC

Accessibility & contrast

On white

16.26
#0C1B51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0C1B51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1B51
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1B51#FFFFFF#000000##FFFFFF
##0C1B511.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#001D50
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1b51;
/* rgb */ color: rgb(12, 27, 81);
/* oklch */ color: oklch(25.0% 0.101 266.8);
Tailwind
colors: {
  custom: {
    50: '#585682',
    500: '#0c1b51',
    950: '#000000',
  },
}
SCSS
$custom: #0c1b51;
$custom-light: #585682;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1b51",
  "rgb": {
    "r": 12,
    "g": 27,
    "b": 81
  },
  "hsl": {
    "h": 226.957,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25049,
    "c": 0.10072,
    "h": 266.8
  },
  "luminance": 0.01456
}

Semantic roles & 50–950 ramp

primary
#0C1B51
secondary
#8C782C
accent
#C837F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1B51

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

Preview Lab → · Contrast checker → · Palette generator →

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