#0C1F4C#0C1F4C

#0C1F4C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.5% C 0.087 H 264.0°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#0C1F4C
RGBrgb(12, 31, 76)
HSLhsl(222, 73%, 17%)
HSVhsv(222, 84%, 30%)
CMYKcmyk(84.2%, 59.2%, 0%, 70.2%)
CIE-LABlab(13.11, 11.32, -30.08)
CIE-LCHlch(13.11, 32.14, 290.62°)
OKLaboklab(25.49% -0.0092 -0.0867)
OKLCHoklch(25.49% 0.087 264)
XYZxyz(1.9456, 1.5797, 7.0384)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1F4C #4C390C
analogous
#0C3F4C #0C1F4C #190C4C
triadic
#0C1F4C #4C0C1F #1F4C0C
tetradic
#0C1F4C #4C0C3F #4C390C #0C4C19
square
#0C1F4C #4C0C3F #4C390C #0C4C19
split-complementary
#0C1F4C #4C190C #3F4C0C
monochromatic
#040B1A #040B1A #0C1F4C #143581 #1D4AB6

Accessibility & contrast

On white

15.96
#0C1F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0C1F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1F4C
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1F4C#FFFFFF#000000##FFFFFF
##0C1F4C1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01254E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c1f4c;
/* rgb */ color: rgb(12, 31, 76);
/* oklch */ color: oklch(25.5% 0.087 264.0);
Tailwind
colors: {
  custom: {
    50: '#565a7e',
    500: '#0c1f4c',
    950: '#000000',
  },
}
SCSS
$custom: #0c1f4c;
$custom-light: #565a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1f4c",
  "rgb": {
    "r": 12,
    "g": 31,
    "b": 76
  },
  "hsl": {
    "h": 222.188,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25493,
    "c": 0.08716,
    "h": 264
  },
  "luminance": 0.0158
}

Semantic roles & 50–950 ramp

primary
#0C1F4C
secondary
#886C2C
accent
#B938EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0C1F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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