#0C1E4C#0C1E4C

#0C1E4C is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.089 H 264.6°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#0C1E4C
RGBrgb(12, 30, 76)
HSLhsl(223, 73%, 17%)
HSVhsv(223, 84%, 30%)
CMYKcmyk(84.2%, 60.5%, 0%, 70.2%)
CIE-LABlab(12.79, 12.09, -30.60)
CIE-LCHlch(12.79, 32.90, 291.56°)
OKLaboklab(25.25% -0.0083 -0.0882)
OKLCHoklch(25.25% 0.089 264.6)
XYZxyz(1.9199, 1.5283, 7.0299)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1E4C #4C3A0C
analogous
#0C3E4C #0C1E4C #1A0C4C
triadic
#0C1E4C #4C0C1E #1E4C0C
tetradic
#0C1E4C #4C0C3E #4C3A0C #0C4C1A
square
#0C1E4C #4C0C3E #4C3A0C #0C4C1A
split-complementary
#0C1E4C #4C1A0C #3E4C0C
monochromatic
#040A1A #040A1A #0C1E4C #143381 #1D48B6

Accessibility & contrast

On white

16.08
#0C1E4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0C1E4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1E4C
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1E4C#FFFFFF#000000##FFFFFF
##0C1E4C1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c1e4c;
/* rgb */ color: rgb(12, 30, 76);
/* oklch */ color: oklch(25.3% 0.089 264.6);
Tailwind
colors: {
  custom: {
    50: '#56597e',
    500: '#0c1e4c',
    950: '#000000',
  },
}
SCSS
$custom: #0c1e4c;
$custom-light: #56597e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1e4c",
  "rgb": {
    "r": 12,
    "g": 30,
    "b": 76
  },
  "hsl": {
    "h": 223.125,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25251,
    "c": 0.08862,
    "h": 264.6
  },
  "luminance": 0.01529
}

Semantic roles & 50–950 ramp

primary
#0C1E4C
secondary
#886E2C
accent
#BC38EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0C1E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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