#0C1755#0C1755

#0C1755 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.6% C 0.112 H 268.3°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#0C1755
RGBrgb(12, 23, 85)
HSLhsl(231, 75%, 19%)
HSVhsv(231, 86%, 33%)
CMYKcmyk(85.9%, 72.9%, 0%, 66.7%)
CIE-LABlab(11.60, 21.28, -38.70)
CIE-LCHlch(11.60, 44.16, 298.81°)
OKLaboklab(24.64% -0.0032 -0.1121)
OKLCHoklch(24.64% 0.112 268.3)
XYZxyz(2.0971, 1.3466, 8.7420)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1755 #554A0C
analogous
#0C3C55 #0C1755 #260C55
triadic
#0C1755 #550C17 #17550C
tetradic
#0C1755 #550C3C #554A0C #0C5526
square
#0C1755 #550C3C #554A0C #0C5526
split-complementary
#0C1755 #55260C #3C550C
monochromatic
#04071B #04081F #0C1755 #14268B #1B34C0

Accessibility & contrast

On white

16.54
#0C1755 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1755
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1755#FFFFFF#000000##FFFFFF
##0C17551.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1755;
/* rgb */ color: rgb(12, 23, 85);
/* oklch */ color: oklch(24.6% 0.112 268.3);
Tailwind
colors: {
  custom: {
    50: '#5a5486',
    500: '#0c1755',
    950: '#000000',
  },
}
SCSS
$custom: #0c1755;
$custom-light: #5a5486;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1755",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 85
  },
  "hsl": {
    "h": 230.959,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2464,
    "c": 0.11211,
    "h": 268.3
  },
  "luminance": 0.01347
}

Semantic roles & 50–950 ramp

primary
#0C1755
secondary
#90812D
accent
#D636F2
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0C1755

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

Preview Lab → · Contrast checker → · Palette generator →

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