#0C1D4E#0C1D4E

#0C1D4E is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.093 H 265.5°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#0C1D4E
RGBrgb(12, 29, 78)
HSLhsl(225, 73%, 18%)
HSVhsv(225, 85%, 31%)
CMYKcmyk(84.6%, 62.8%, 0%, 69.4%)
CIE-LABlab(12.65, 13.75, -32.20)
CIE-LCHlch(12.65, 35.01, 293.12°)
OKLaboklab(25.21% -0.0073 -0.0929)
OKLCHoklch(25.21% 0.093 265.5)
XYZxyz(1.9656, 1.5067, 7.3935)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1D4E #4E3D0C
analogous
#0C3E4E #0C1D4E #1C0C4E
triadic
#0C1D4E #4E0C1D #1D4E0C
tetradic
#0C1D4E #4E0C3E #4E3D0C #0C4E1C
square
#0C1D4E #4E0C3E #4E3D0C #0C4E1C
split-complementary
#0C1D4E #4E1C0C #3E4E0C
monochromatic
#040A1B #040A1B #0C1D4E #143183 #1C44B8

Accessibility & contrast

On white

16.14
#0C1D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0C1D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1D4E
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1D4E#FFFFFF#000000##FFFFFF
##0C1D4E1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c1d4e;
/* rgb */ color: rgb(12, 29, 78);
/* oklch */ color: oklch(25.2% 0.093 265.5);
Tailwind
colors: {
  custom: {
    50: '#575880',
    500: '#0c1d4e',
    950: '#000000',
  },
}
SCSS
$custom: #0c1d4e;
$custom-light: #575880;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1d4e",
  "rgb": {
    "r": 12,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 224.545,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25205,
    "c": 0.09323,
    "h": 265.5
  },
  "luminance": 0.01507
}

Semantic roles & 50–950 ramp

primary
#0C1D4E
secondary
#8A722C
accent
#C138F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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