#0C1853#0C1853

#0C1853 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.6% C 0.108 H 268.0°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#0C1853
RGBrgb(12, 24, 83)
HSLhsl(230, 75%, 19%)
HSVhsv(230, 86%, 33%)
CMYKcmyk(85.5%, 71.1%, 0%, 67.5%)
CIE-LABlab(11.66, 19.71, -37.24)
CIE-LCHlch(11.66, 42.13, 297.89°)
OKLaboklab(24.62% -0.0037 -0.1078)
OKLCHoklch(24.62% 0.108 268)
XYZxyz(2.0390, 1.3557, 8.3362)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1853 #53470C
analogous
#0C3B53 #0C1853 #230C53
triadic
#0C1853 #530C18 #18530C
tetradic
#0C1853 #530C3B #53470C #0C5323
square
#0C1853 #530C3B #53470C #0C5323
split-complementary
#0C1853 #53230C #3B530C
monochromatic
#04081B #04091E #0C1853 #142788 #1B37BE

Accessibility & contrast

On white

16.52
#0C1853 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#0C1853 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1853
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1853#FFFFFF#000000##FFFFFF
##0C18531.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002255
Deuteranopia (green-blind)
#001B52
Tritanopia (blue-blind)
#002833
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0c1853;
/* rgb */ color: rgb(12, 24, 83);
/* oklch */ color: oklch(24.6% 0.108 268.0);
Tailwind
colors: {
  custom: {
    50: '#595484',
    500: '#0c1853',
    950: '#000000',
  },
}
SCSS
$custom: #0c1853;
$custom-light: #595484;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1853",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 83
  },
  "hsl": {
    "h": 229.859,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24621,
    "c": 0.10784,
    "h": 268
  },
  "luminance": 0.01356
}

Semantic roles & 50–950 ramp

primary
#0C1853
secondary
#8E7E2D
accent
#D236F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0C1853

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

Preview Lab → · Contrast checker → · Palette generator →

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