#0C1A53#0C1A53

#0C1A53 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.0% C 0.105 H 267.3°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#0C1A53
RGBrgb(12, 26, 83)
HSLhsl(228, 75%, 19%)
HSVhsv(228, 86%, 33%)
CMYKcmyk(85.5%, 68.7%, 0%, 67.5%)
CIE-LABlab(12.23, 18.22, -36.30)
CIE-LCHlch(12.23, 40.62, 296.65°)
OKLaboklab(25.04% -0.005 -0.105)
OKLCHoklch(25.04% 0.105 267.3)
XYZxyz(2.0818, 1.4412, 8.3504)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1A53 #53450C
analogous
#0C3D53 #0C1A53 #210C53
triadic
#0C1A53 #530C1A #1A530C
tetradic
#0C1A53 #530C3D #53450C #0C5321
square
#0C1A53 #530C3D #53450C #0C5321
split-complementary
#0C1A53 #53210C #3D530C
monochromatic
#04081B #04091E #0C1A53 #142B88 #1B3BBE

Accessibility & contrast

On white

16.30
#0C1A53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0C1A53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1A53
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1A53#FFFFFF#000000##FFFFFF
##0C1A531.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002355
Deuteranopia (green-blind)
#001D52
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1a53;
/* rgb */ color: rgb(12, 26, 83);
/* oklch */ color: oklch(25.0% 0.105 267.3);
Tailwind
colors: {
  custom: {
    50: '#595684',
    500: '#0c1a53',
    950: '#000000',
  },
}
SCSS
$custom: #0c1a53;
$custom-light: #595684;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1a53",
  "rgb": {
    "r": 12,
    "g": 26,
    "b": 83
  },
  "hsl": {
    "h": 228.169,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.2504,
    "c": 0.10514,
    "h": 267.3
  },
  "luminance": 0.01441
}

Semantic roles & 50–950 ramp

primary
#0C1A53
secondary
#8E7B2D
accent
#CD36F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0C1A53

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

Preview Lab → · Contrast checker → · Palette generator →

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