#0C1741#0C1741

#0C1741 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.5% C 0.081 H 268.1°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#0C1741
RGBrgb(12, 23, 65)
HSLhsl(228, 69%, 15%)
HSVhsv(228, 82%, 25%)
CMYKcmyk(81.5%, 64.6%, 0%, 74.5%)
CIE-LABlab(9.58, 12.64, -28.14)
CIE-LCHlch(9.58, 30.85, 294.19°)
OKLaboklab(22.53% -0.0027 -0.0811)
OKLCHoklch(22.53% 0.081 268.1)
XYZxyz(1.4118, 1.0725, 5.1326)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1741 #41360C
analogous
#0C3141 #0C1741 #1B0C41
triadic
#0C1741 #410C17 #17410C
tetradic
#0C1741 #410C31 #41360C #0C411B
square
#0C1741 #410C31 #41360C #0C411B
split-complementary
#0C1741 #411B0C #31410C
monochromatic
#05091A #05091A #0C1741 #162975 #1F3CA8

Accessibility & contrast

On white

17.29
#0C1741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1741
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1741#FFFFFF#000000##FFFFFF
##0C17411.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#001840
Tritanopia (blue-blind)
#002129
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c1741;
/* rgb */ color: rgb(12, 23, 65);
/* oklch */ color: oklch(22.5% 0.081 268.1);
Tailwind
colors: {
  custom: {
    50: '#545376',
    500: '#0c1741',
    950: '#000000',
  },
}
SCSS
$custom: #0c1741;
$custom-light: #545376;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1741",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 65
  },
  "hsl": {
    "h": 227.547,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22529,
    "c": 0.08118,
    "h": 268.1
  },
  "luminance": 0.01073
}

Semantic roles & 50–950 ramp

primary
#0C1741
secondary
#7D6C2C
accent
#C73CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C1741

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

Preview Lab → · Contrast checker → · Palette generator →

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