#0C1D53#0C1D53

#0C1D53 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.7% C 0.101 H 266.0°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#0C1D53
RGBrgb(12, 29, 83)
HSLhsl(226, 75%, 19%)
HSVhsv(226, 86%, 33%)
CMYKcmyk(85.5%, 65.1%, 0%, 67.5%)
CIE-LABlab(13.12, 15.95, -34.85)
CIE-LCHlch(13.12, 38.33, 294.59°)
OKLaboklab(25.7% -0.0071 -0.1007)
OKLCHoklch(25.7% 0.101 266)
XYZxyz(2.1518, 1.5812, 8.3737)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1D53 #53420C
analogous
#0C4053 #0C1D53 #1E0C53
triadic
#0C1D53 #530C1D #1D530C
tetradic
#0C1D53 #530C40 #53420C #0C531E
square
#0C1D53 #530C40 #53420C #0C531E
split-complementary
#0C1D53 #531E0C #40530C
monochromatic
#04091B #040A1E #0C1D53 #143088 #1B42BE

Accessibility & contrast

On white

15.96
#0C1D53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0C1D53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1D53
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1D53#FFFFFF#000000##FFFFFF
##0C1D531.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#001F52
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c1d53;
/* rgb */ color: rgb(12, 29, 83);
/* oklch */ color: oklch(25.7% 0.101 266.0);
Tailwind
colors: {
  custom: {
    50: '#595884',
    500: '#0c1d53',
    950: '#000000',
  },
}
SCSS
$custom: #0c1d53;
$custom-light: #595884;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1d53",
  "rgb": {
    "r": 12,
    "g": 29,
    "b": 83
  },
  "hsl": {
    "h": 225.634,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25697,
    "c": 0.10099,
    "h": 266
  },
  "luminance": 0.01581
}

Semantic roles & 50–950 ramp

primary
#0C1D53
secondary
#8E772D
accent
#C536F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0C1D53

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

Preview Lab → · Contrast checker → · Palette generator →

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