#0C1D50#0C1D50

#0C1D50 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.4% C 0.096 H 265.7°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#0C1D50
RGBrgb(12, 29, 80)
HSLhsl(225, 74%, 18%)
HSVhsv(225, 85%, 31%)
CMYKcmyk(85%, 63.7%, 0%, 68.6%)
CIE-LABlab(12.83, 14.63, -33.27)
CIE-LCHlch(12.83, 36.34, 293.74°)
OKLaboklab(25.4% -0.0072 -0.0961)
OKLCHoklch(25.4% 0.096 265.7)
XYZxyz(2.0384, 1.5358, 7.7769)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1D50 #503F0C
analogous
#0C3F50 #0C1D50 #1D0C50
triadic
#0C1D50 #500C1D #1D500C
tetradic
#0C1D50 #500C3F #503F0C #0C501D
square
#0C1D50 #500C3F #503F0C #0C501D
split-complementary
#0C1D50 #501D0C #3F500C
monochromatic
#040A1B #040A1B #0C1D50 #143085 #1C44BA

Accessibility & contrast

On white

16.06
#0C1D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0C1D50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1D50
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1D50#FFFFFF#000000##FFFFFF
##0C1D501.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1d50;
/* rgb */ color: rgb(12, 29, 80);
/* oklch */ color: oklch(25.4% 0.096 265.7);
Tailwind
colors: {
  custom: {
    50: '#585882',
    500: '#0c1d50',
    950: '#000000',
  },
}
SCSS
$custom: #0c1d50;
$custom-light: #585882;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1d50",
  "rgb": {
    "r": 12,
    "g": 29,
    "b": 80
  },
  "hsl": {
    "h": 225,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.254,
    "c": 0.09635,
    "h": 265.7
  },
  "luminance": 0.01536
}

Semantic roles & 50–950 ramp

primary
#0C1D50
secondary
#8B742C
accent
#C237F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1D50

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

Preview Lab → · Contrast checker → · Palette generator →

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