#0C1237#0C1237

#0C1237 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.4% C 0.072 H 271.5°. Best body text is #FFFFFF at 18.14:1 contrast (WCAG AA passes).

Color values

HEX#0C1237
RGBrgb(12, 18, 55)
HSLhsl(232, 64%, 13%)
HSVhsv(232, 78%, 22%)
CMYKcmyk(78.2%, 67.3%, 0%, 78.4%)
CIE-LABlab(7.10, 12.03, -25.00)
CIE-LCHlch(7.10, 27.74, 295.69°)
OKLaboklab(20.36% 0.0019 -0.0722)
OKLCHoklch(20.36% 0.072 271.5)
XYZxyz(1.0573, 0.7865, 3.7098)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1237 #37310C
analogous
#0C2737 #0C1237 #1B0C37
triadic
#0C1237 #370C12 #12370C
tetradic
#0C1237 #370C27 #37310C #0C371B
square
#0C1237 #370C27 #37310C #0C371B
split-complementary
#0C1237 #371B0C #27370C
monochromatic
#050819 #050819 #0C1237 #172269 #22339B

Accessibility & contrast

On white

18.14
#0C1237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0C1237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1237
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1237#FFFFFF#000000##FFFFFF
##0C12371.0018.141.1618.14
#FFFFFF18.141.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001838
Deuteranopia (green-blind)
#001436
Tritanopia (blue-blind)
#001B22
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c1237;
/* rgb */ color: rgb(12, 18, 55);
/* oklch */ color: oklch(20.4% 0.072 271.5);
Tailwind
colors: {
  custom: {
    50: '#514f6e',
    500: '#0c1237',
    950: '#000000',
  },
}
SCSS
$custom: #0c1237;
$custom-light: #514f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1237",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 231.628,
    "s": 64.179,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20359,
    "c": 0.07218,
    "h": 271.5
  },
  "luminance": 0.00787
}

Semantic roles & 50–950 ramp

primary
#0C1237
secondary
#73692C
accent
#D041E7
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #0C1237

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

Preview Lab → · Contrast checker → · Palette generator →

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