#0C0F53#0C0F53

#0C0F53 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 23.0% C 0.119 H 270.5°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#0C0F53
RGBrgb(12, 15, 83)
HSLhsl(237, 75%, 19%)
HSVhsv(237, 86%, 33%)
CMYKcmyk(85.5%, 81.9%, 0%, 67.5%)
CIE-LABlab(9.35, 26.01, -41.03)
CIE-LCHlch(9.35, 48.59, 302.37°)
OKLaboklab(22.96% 0.001 -0.1188)
OKLCHoklch(22.96% 0.119 270.5)
XYZxyz(1.8832, 1.0441, 8.2842)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F53 #53500C
analogous
#0C3253 #0C0F53 #2C0C53
triadic
#0C0F53 #530C0F #0F530C
tetradic
#0C0F53 #530C32 #53500C #0C532C
square
#0C0F53 #530C32 #53500C #0C532C
split-complementary
#0C0F53 #532C0C #32530C
monochromatic
#04051B #04051E #0C0F53 #141988 #1B22BE

Accessibility & contrast

On white

17.37
#0C0F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0C0F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0F53
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F53#FFFFFF#000000##FFFFFF
##0C0F531.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E55
Deuteranopia (green-blind)
#001752
Tritanopia (blue-blind)
#002330
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c0f53;
/* rgb */ color: rgb(12, 15, 83);
/* oklch */ color: oklch(23.0% 0.119 270.5);
Tailwind
colors: {
  custom: {
    50: '#5a4e84',
    500: '#0c0f53',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f53;
$custom-light: #5a4e84;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f53",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 83
  },
  "hsl": {
    "h": 237.465,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.22956,
    "c": 0.11884,
    "h": 270.5
  },
  "luminance": 0.01044
}

Semantic roles & 50–950 ramp

primary
#0C0F53
secondary
#8E8A2D
accent
#E936F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010B
muted
#79777C

Preview Lab

Preview with #0C0F53

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

Preview Lab → · Contrast checker → · Palette generator →

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