#0C1C53#0C1C53

#0C1C53 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.5% C 0.102 H 266.4°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#0C1C53
RGBrgb(12, 28, 83)
HSLhsl(226, 75%, 19%)
HSVhsv(226, 86%, 33%)
CMYKcmyk(85.5%, 66.3%, 0%, 67.5%)
CIE-LABlab(12.82, 16.71, -35.34)
CIE-LCHlch(12.82, 39.09, 295.30°)
OKLaboklab(25.48% -0.0064 -0.1022)
OKLCHoklch(25.48% 0.102 266.4)
XYZxyz(2.1277, 1.5330, 8.3657)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1C53 #53430C
analogous
#0C3F53 #0C1C53 #1F0C53
triadic
#0C1C53 #530C1C #1C530C
tetradic
#0C1C53 #530C3F #53430C #0C531F
square
#0C1C53 #530C3F #53430C #0C531F
split-complementary
#0C1C53 #531F0C #3F530C
monochromatic
#04091B #040A1E #0C1C53 #142E88 #1B40BE

Accessibility & contrast

On white

16.07
#0C1C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1C53
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1C53#FFFFFF#000000##FFFFFF
##0C1C531.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#001E52
Tritanopia (blue-blind)
#002A34
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c1c53;
/* rgb */ color: rgb(12, 28, 83);
/* oklch */ color: oklch(25.5% 0.102 266.4);
Tailwind
colors: {
  custom: {
    50: '#595784',
    500: '#0c1c53',
    950: '#000000',
  },
}
SCSS
$custom: #0c1c53;
$custom-light: #595784;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1c53",
  "rgb": {
    "r": 12,
    "g": 28,
    "b": 83
  },
  "hsl": {
    "h": 226.479,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25475,
    "c": 0.10238,
    "h": 266.4
  },
  "luminance": 0.01533
}

Semantic roles & 50–950 ramp

primary
#0C1C53
secondary
#8E782D
accent
#C736F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0C1C53

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

Preview Lab → · Contrast checker → · Palette generator →

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