#0C1F4A#0C1F4A

#0C1F4A is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.3% C 0.084 H 263.6°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#0C1F4A
RGBrgb(12, 31, 74)
HSLhsl(222, 72%, 17%)
HSVhsv(222, 84%, 29%)
CMYKcmyk(83.8%, 58.1%, 0%, 71%)
CIE-LABlab(12.94, 10.43, -28.98)
CIE-LCHlch(12.94, 30.80, 289.79°)
OKLaboklab(25.31% -0.0094 -0.0834)
OKLCHoklch(25.31% 0.084 263.6)
XYZxyz(1.8772, 1.5523, 6.6779)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1F4A #4A370C
analogous
#0C3E4A #0C1F4A #180C4A
triadic
#0C1F4A #4A0C1F #1F4A0C
tetradic
#0C1F4A #4A0C3E #4A370C #0C4A18
square
#0C1F4A #4A0C3E #4A370C #0C4A18
split-complementary
#0C1F4A #4A180C #3E4A0C
monochromatic
#040B1A #040B1A #0C1F4A #15357F #1D4BB3

Accessibility & contrast

On white

16.02
#0C1F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1F4A
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1F4A#FFFFFF#000000##FFFFFF
##0C1F4A1.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03244C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c1f4a;
/* rgb */ color: rgb(12, 31, 74);
/* oklch */ color: oklch(25.3% 0.084 263.6);
Tailwind
colors: {
  custom: {
    50: '#565a7d',
    500: '#0c1f4a',
    950: '#000000',
  },
}
SCSS
$custom: #0c1f4a;
$custom-light: #565a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1f4a",
  "rgb": {
    "r": 12,
    "g": 31,
    "b": 74
  },
  "hsl": {
    "h": 221.613,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25311,
    "c": 0.08397,
    "h": 263.6
  },
  "luminance": 0.01553
}

Semantic roles & 50–950 ramp

primary
#0C1F4A
secondary
#866A2C
accent
#B739EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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