#0C1943#0C1943

#0C1943 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.2% C 0.081 H 266.8°. Best body text is #FFFFFF at 16.99:1 contrast (WCAG AA passes).

Color values

HEX#0C1943
RGBrgb(12, 25, 67)
HSLhsl(226, 70%, 15%)
HSVhsv(226, 82%, 26%)
CMYKcmyk(82.1%, 62.7%, 0%, 73.7%)
CIE-LABlab(10.40, 11.97, -28.22)
CIE-LCHlch(10.40, 30.66, 292.98°)
OKLaboklab(23.2% -0.0045 -0.0813)
OKLCHoklch(23.2% 0.081 266.8)
XYZxyz(1.5120, 1.1785, 5.4569)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1943 #43360C
analogous
#0C3443 #0C1943 #1A0C43
triadic
#0C1943 #430C19 #19430C
tetradic
#0C1943 #430C34 #43360C #0C431A
square
#0C1943 #430C34 #43360C #0C431A
split-complementary
#0C1943 #431A0C #34430C
monochromatic
#050A1A #050A1A #0C1943 #152C77 #1F40AB

Accessibility & contrast

On white

16.99
#0C1943 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#0C1943 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1943
16.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1943#FFFFFF#000000##FFFFFF
##0C19431.0016.991.2416.99
#FFFFFF16.991.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F44
Deuteranopia (green-blind)
#001A42
Tritanopia (blue-blind)
#00232B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c1943;
/* rgb */ color: rgb(12, 25, 67);
/* oklch */ color: oklch(23.2% 0.081 266.8);
Tailwind
colors: {
  custom: {
    50: '#545577',
    500: '#0c1943',
    950: '#000000',
  },
}
SCSS
$custom: #0c1943;
$custom-light: #545577;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1943",
  "rgb": {
    "r": 12,
    "g": 25,
    "b": 67
  },
  "hsl": {
    "h": 225.818,
    "s": 69.62,
    "l": 15.49
  },
  "oklch": {
    "l": 0.232,
    "c": 0.08145,
    "h": 266.8
  },
  "luminance": 0.01179
}

Semantic roles & 50–950 ramp

primary
#0C1943
secondary
#7F6B2C
accent
#C33BEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1943

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

Preview Lab → · Contrast checker → · Palette generator →

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