#0C1C50#0C1C50

#0C1C50 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.098 H 266.2°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#0C1C50
RGBrgb(12, 28, 80)
HSLhsl(226, 74%, 18%)
HSVhsv(226, 85%, 31%)
CMYKcmyk(85%, 65%, 0%, 68.6%)
CIE-LABlab(12.53, 15.40, -33.76)
CIE-LCHlch(12.53, 37.11, 294.51°)
OKLaboklab(25.17% -0.0064 -0.0976)
OKLCHoklch(25.17% 0.098 266.2)
XYZxyz(2.0143, 1.4876, 7.7688)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1C50 #50400C
analogous
#0C3E50 #0C1C50 #1E0C50
triadic
#0C1C50 #500C1C #1C500C
tetradic
#0C1C50 #500C3E #50400C #0C501E
square
#0C1C50 #500C3E #50400C #0C501E
split-complementary
#0C1C50 #501E0C #3E500C
monochromatic
#04091B #04091B #0C1C50 #142F85 #1C41BA

Accessibility & contrast

On white

16.18
#0C1C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0C1C50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1C50
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1C50#FFFFFF#000000##FFFFFF
##0C1C501.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#001E4F
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c1c50;
/* rgb */ color: rgb(12, 28, 80);
/* oklch */ color: oklch(25.2% 0.098 266.2);
Tailwind
colors: {
  custom: {
    50: '#585782',
    500: '#0c1c50',
    950: '#000000',
  },
}
SCSS
$custom: #0c1c50;
$custom-light: #585782;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1c50",
  "rgb": {
    "r": 12,
    "g": 28,
    "b": 80
  },
  "hsl": {
    "h": 225.882,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25172,
    "c": 0.09777,
    "h": 266.2
  },
  "luminance": 0.01488
}

Semantic roles & 50–950 ramp

primary
#0C1C50
secondary
#8B752C
accent
#C537F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1C50

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

Preview Lab → · Contrast checker → · Palette generator →

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