#0C1A4E#0C1A4E

#0C1A4E is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.5% C 0.098 H 267.1°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#0C1A4E
RGBrgb(12, 26, 78)
HSLhsl(227, 73%, 18%)
HSVhsv(227, 85%, 31%)
CMYKcmyk(84.6%, 66.7%, 0%, 69.4%)
CIE-LABlab(11.73, 16.05, -33.69)
CIE-LCHlch(11.73, 37.32, 295.47°)
OKLaboklab(24.52% -0.005 -0.0974)
OKLCHoklch(24.52% 0.098 267.1)
XYZxyz(1.8957, 1.3668, 7.3702)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1A4E #4E400C
analogous
#0C3B4E #0C1A4E #1F0C4E
triadic
#0C1A4E #4E0C1A #1A4E0C
tetradic
#0C1A4E #4E0C3B #4E400C #0C4E1F
square
#0C1A4E #4E0C3B #4E400C #0C4E1F
split-complementary
#0C1A4E #4E1F0C #3B4E0C
monochromatic
#04091B #04091B #0C1A4E #142C83 #1C3DB8

Accessibility & contrast

On white

16.49
#0C1A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1A4E
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1A4E#FFFFFF#000000##FFFFFF
##0C1A4E1.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002250
Deuteranopia (green-blind)
#001C4D
Tritanopia (blue-blind)
#002731
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0c1a4e;
/* rgb */ color: rgb(12, 26, 78);
/* oklch */ color: oklch(24.5% 0.098 267.1);
Tailwind
colors: {
  custom: {
    50: '#575680',
    500: '#0c1a4e',
    950: '#000000',
  },
}
SCSS
$custom: #0c1a4e;
$custom-light: #575680;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1a4e",
  "rgb": {
    "r": 12,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 227.273,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24521,
    "c": 0.0975,
    "h": 267.1
  },
  "luminance": 0.01367
}

Semantic roles & 50–950 ramp

primary
#0C1A4E
secondary
#8A762C
accent
#C938F0
background
#F5F5F7
surface
#E9E8EE
border
#C5C4C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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