#0C1F5F#0C1F5F

#0C1F5F is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.116 H 265.9°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#0C1F5F
RGBrgb(12, 31, 95)
HSLhsl(226, 78%, 21%)
HSVhsv(226, 87%, 37%)
CMYKcmyk(87.4%, 67.4%, 0%, 62.7%)
CIE-LABlab(14.87, 19.64, -40.06)
CIE-LCHlch(14.87, 44.61, 296.12°)
OKLaboklab(27.36% -0.0084 -0.116)
OKLCHoklch(27.36% 0.116 265.9)
XYZxyz(2.7064, 1.8840, 11.0453)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1F5F #5F4C0C
analogous
#0C485F #0C1F5F #220C5F
triadic
#0C1F5F #5F0C1F #1F5F0C
tetradic
#0C1F5F #5F0C48 #5F4C0C #0C5F22
square
#0C1F5F #5F0C48 #5F4C0C #0C5F22
split-complementary
#0C1F5F #5F220C #485F0C
monochromatic
#03091B #050D29 #0C1F5F #133195 #1A42CC

Accessibility & contrast

On white

15.25
#0C1F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#0C1F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1F5F
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1F5F#FFFFFF#000000##FFFFFF
##0C1F5F1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#00303B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0c1f5f;
/* rgb */ color: rgb(12, 31, 95);
/* oklch */ color: oklch(27.4% 0.116 265.9);
Tailwind
colors: {
  custom: {
    50: '#5c5a8d',
    500: '#0c1f5f',
    950: '#000000',
  },
}
SCSS
$custom: #0c1f5f;
$custom-light: #5c5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1f5f",
  "rgb": {
    "r": 12,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 226.265,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27359,
    "c": 0.11626,
    "h": 265.9
  },
  "luminance": 0.01884
}

Semantic roles & 50–950 ramp

primary
#0C1F5F
secondary
#99812D
accent
#C834F4
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0C1F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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