#0C1A50#0C1A50

#0C1A50 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.7% C 0.101 H 267.2°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#0C1A50
RGBrgb(12, 26, 80)
HSLhsl(228, 74%, 18%)
HSVhsv(228, 85%, 31%)
CMYKcmyk(85%, 67.5%, 0%, 68.6%)
CIE-LABlab(11.93, 16.92, -34.74)
CIE-LCHlch(11.93, 38.64, 295.97°)
OKLaboklab(24.73% -0.005 -0.1004)
OKLCHoklch(24.73% 0.101 267.2)
XYZxyz(1.9685, 1.3959, 7.7536)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1A50 #50420C
analogous
#0C3C50 #0C1A50 #200C50
triadic
#0C1A50 #500C1A #1A500C
tetradic
#0C1A50 #500C3C #50420C #0C5020
square
#0C1A50 #500C3C #50420C #0C5020
split-complementary
#0C1A50 #50200C #3C500C
monochromatic
#04091B #04091B #0C1A50 #142B85 #1C3DBA

Accessibility & contrast

On white

16.42
#0C1A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#0C1A50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1A50
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1A50#FFFFFF#000000##FFFFFF
##0C1A501.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#001C4F
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0c1a50;
/* rgb */ color: rgb(12, 26, 80);
/* oklch */ color: oklch(24.7% 0.101 267.2);
Tailwind
colors: {
  custom: {
    50: '#585682',
    500: '#0c1a50',
    950: '#000000',
  },
}
SCSS
$custom: #0c1a50;
$custom-light: #585682;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1a50",
  "rgb": {
    "r": 12,
    "g": 26,
    "b": 80
  },
  "hsl": {
    "h": 227.647,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24726,
    "c": 0.10057,
    "h": 267.2
  },
  "luminance": 0.01396
}

Semantic roles & 50–950 ramp

primary
#0C1A50
secondary
#8B782C
accent
#CA37F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1A50

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

Preview Lab → · Contrast checker → · Palette generator →

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