#0C1F48#0C1F48

#0C1F48 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.081 H 263.1°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#0C1F48
RGBrgb(12, 31, 72)
HSLhsl(221, 71%, 16%)
HSVhsv(221, 83%, 28%)
CMYKcmyk(83.3%, 56.9%, 0%, 71.8%)
CIE-LABlab(12.77, 9.53, -27.87)
CIE-LCHlch(12.77, 29.45, 288.88°)
OKLaboklab(25.13% -0.0096 -0.0802)
OKLCHoklch(25.13% 0.081 263.1)
XYZxyz(1.8109, 1.5258, 6.3287)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1F48 #48350C
analogous
#0C3D48 #0C1F48 #170C48
triadic
#0C1F48 #480C1F #1F480C
tetradic
#0C1F48 #480C3D #48350C #0C4817
square
#0C1F48 #480C3D #48350C #0C4817
split-complementary
#0C1F48 #48170C #3D480C
monochromatic
#040B1A #040B1A #0C1F48 #15367C #1D4CB1

Accessibility & contrast

On white

16.09
#0C1F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1F48
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1F48#FFFFFF#000000##FFFFFF
##0C1F481.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062449
Deuteranopia (green-blind)
#001E47
Tritanopia (blue-blind)
#002930
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c1f48;
/* rgb */ color: rgb(12, 31, 72);
/* oklch */ color: oklch(25.1% 0.081 263.1);
Tailwind
colors: {
  custom: {
    50: '#555a7b',
    500: '#0c1f48',
    950: '#000000',
  },
}
SCSS
$custom: #0c1f48;
$custom-light: #555a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1f48",
  "rgb": {
    "r": 12,
    "g": 31,
    "b": 72
  },
  "hsl": {
    "h": 221,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25132,
    "c": 0.08074,
    "h": 263.1
  },
  "luminance": 0.01526
}

Semantic roles & 50–950 ramp

primary
#0C1F48
secondary
#84682C
accent
#B53AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1F48

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

Preview Lab → · Contrast checker → · Palette generator →

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