#0C1B53#0C1B53

#0C1B53 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.104 H 266.9°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#0C1B53
RGBrgb(12, 27, 83)
HSLhsl(227, 75%, 19%)
HSVhsv(227, 86%, 33%)
CMYKcmyk(85.5%, 67.5%, 0%, 67.5%)
CIE-LABlab(12.52, 17.46, -35.82)
CIE-LCHlch(12.52, 39.85, 295.99°)
OKLaboklab(25.26% -0.0057 -0.1036)
OKLCHoklch(25.26% 0.104 266.9)
XYZxyz(2.1043, 1.4863, 8.3579)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1B53 #53440C
analogous
#0C3E53 #0C1B53 #200C53
triadic
#0C1B53 #530C1B #1B530C
tetradic
#0C1B53 #530C3E #53440C #0C5320
square
#0C1B53 #530C3E #53440C #0C5320
split-complementary
#0C1B53 #53200C #3E530C
monochromatic
#04091B #040A1E #0C1B53 #142C88 #1B3EBE

Accessibility & contrast

On white

16.19
#0C1B53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0C1B53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1B53
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1B53#FFFFFF#000000##FFFFFF
##0C1B531.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002455
Deuteranopia (green-blind)
#001D52
Tritanopia (blue-blind)
#002A34
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c1b53;
/* rgb */ color: rgb(12, 27, 83);
/* oklch */ color: oklch(25.3% 0.104 266.9);
Tailwind
colors: {
  custom: {
    50: '#595784',
    500: '#0c1b53',
    950: '#000000',
  },
}
SCSS
$custom: #0c1b53;
$custom-light: #595784;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1b53",
  "rgb": {
    "r": 12,
    "g": 27,
    "b": 83
  },
  "hsl": {
    "h": 227.324,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25256,
    "c": 0.10377,
    "h": 266.9
  },
  "luminance": 0.01487
}

Semantic roles & 50–950 ramp

primary
#0C1B53
secondary
#8E7A2D
accent
#CA36F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0C1B53

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

Preview Lab → · Contrast checker → · Palette generator →

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