#0C0E53#0C0E53

#0C0E53 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.8% C 0.120 H 270.7°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#0C0E53
RGBrgb(12, 14, 83)
HSLhsl(238, 75%, 19%)
HSVhsv(238, 86%, 33%)
CMYKcmyk(85.5%, 83.1%, 0%, 67.5%)
CIE-LABlab(9.13, 26.65, -41.41)
CIE-LCHlch(9.13, 49.24, 302.77°)
OKLaboklab(22.8% 0.0014 -0.1199)
OKLCHoklch(22.8% 0.12 270.7)
XYZxyz(1.8695, 1.0166, 8.2796)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0E53 #53510C
analogous
#0C3153 #0C0E53 #2D0C53
triadic
#0C0E53 #530C0E #0E530C
tetradic
#0C0E53 #530C31 #53510C #0C532D
square
#0C0E53 #530C31 #53510C #0C532D
split-complementary
#0C0E53 #532D0C #31530C
monochromatic
#04051B #04051E #0C0E53 #141788 #1B20BE

Accessibility & contrast

On white

17.45
#0C0E53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0C0E53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0E53
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0E53#FFFFFF#000000##FFFFFF
##0C0E531.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0e53;
/* rgb */ color: rgb(12, 14, 83);
/* oklch */ color: oklch(22.8% 0.120 270.7);
Tailwind
colors: {
  custom: {
    50: '#5a4d84',
    500: '#0c0e53',
    950: '#000000',
  },
}
SCSS
$custom: #0c0e53;
$custom-light: #5a4d84;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0e53",
  "rgb": {
    "r": 12,
    "g": 14,
    "b": 83
  },
  "hsl": {
    "h": 238.31,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.22797,
    "c": 0.11992,
    "h": 270.7
  },
  "luminance": 0.01017
}

Semantic roles & 50–950 ramp

primary
#0C0E53
secondary
#8E8C2D
accent
#EC36F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010B
muted
#79777C

Preview Lab

Preview with #0C0E53

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

Preview Lab → · Contrast checker → · Palette generator →

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