#0C1E4E#0C1E4E

#0C1E4E is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.092 H 264.9°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#0C1E4E
RGBrgb(12, 30, 78)
HSLhsl(224, 73%, 18%)
HSVhsv(224, 85%, 31%)
CMYKcmyk(84.6%, 61.5%, 0%, 69.4%)
CIE-LABlab(12.96, 12.98, -31.69)
CIE-LCHlch(12.96, 34.25, 292.28°)
OKLaboklab(25.44% -0.0081 -0.0914)
OKLCHoklch(25.44% 0.092 264.9)
XYZxyz(1.9906, 1.5565, 7.4018)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1E4E #4E3C0C
analogous
#0C3F4E #0C1E4E #1B0C4E
triadic
#0C1E4E #4E0C1E #1E4E0C
tetradic
#0C1E4E #4E0C3F #4E3C0C #0C4E1B
square
#0C1E4E #4E0C3F #4E3C0C #0C4E1B
split-complementary
#0C1E4E #4E1B0C #3F4E0C
monochromatic
#040A1B #040A1B #0C1E4E #143283 #1C47B8

Accessibility & contrast

On white

16.01
#0C1E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1E4E
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1E4E#FFFFFF#000000##FFFFFF
##0C1E4E1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#001F4D
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c1e4e;
/* rgb */ color: rgb(12, 30, 78);
/* oklch */ color: oklch(25.4% 0.092 264.9);
Tailwind
colors: {
  custom: {
    50: '#575980',
    500: '#0c1e4e',
    950: '#000000',
  },
}
SCSS
$custom: #0c1e4e;
$custom-light: #575980;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1e4e",
  "rgb": {
    "r": 12,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 223.636,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2544,
    "c": 0.09178,
    "h": 264.9
  },
  "luminance": 0.01557
}

Semantic roles & 50–950 ramp

primary
#0C1E4E
secondary
#8A702C
accent
#BE38F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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