#0C1253#0C1253

#0C1253 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.5% C 0.115 H 269.8°. Best body text is #FFFFFF at 17.11:1 contrast (WCAG AA passes).

Color values

HEX#0C1253
RGBrgb(12, 18, 83)
HSLhsl(235, 75%, 19%)
HSVhsv(235, 86%, 33%)
CMYKcmyk(85.5%, 78.3%, 0%, 67.5%)
CIE-LABlab(10.07, 24.01, -39.85)
CIE-LCHlch(10.07, 46.52, 301.07°)
OKLaboklab(23.47% -0.0004 -0.1154)
OKLCHoklch(23.47% 0.115 269.8)
XYZxyz(1.9287, 1.1351, 8.2994)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1253 #534D0C
analogous
#0C3553 #0C1253 #290C53
triadic
#0C1253 #530C12 #12530C
tetradic
#0C1253 #530C35 #534D0C #0C5329
square
#0C1253 #530C35 #534D0C #0C5329
split-complementary
#0C1253 #53290C #35530C
monochromatic
#04061B #04061E #0C1253 #141E88 #1B29BE

Accessibility & contrast

On white

17.11
#0C1253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C1253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1253
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1253#FFFFFF#000000##FFFFFF
##0C12531.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F55
Deuteranopia (green-blind)
#001852
Tritanopia (blue-blind)
#002531
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c1253;
/* rgb */ color: rgb(12, 18, 83);
/* oklch */ color: oklch(23.5% 0.115 269.8);
Tailwind
colors: {
  custom: {
    50: '#5a5084',
    500: '#0c1253',
    950: '#000000',
  },
}
SCSS
$custom: #0c1253;
$custom-light: #5a5084;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1253",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 234.93,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23467,
    "c": 0.11542,
    "h": 269.8
  },
  "luminance": 0.01135
}

Semantic roles & 50–950 ramp

primary
#0C1253
secondary
#8E862D
accent
#E236F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0C1253

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

Preview Lab → · Contrast checker → · Palette generator →

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