#0C1F53#0C1F53

#0C1F53 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.2% C 0.098 H 265.0°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#0C1F53
RGBrgb(12, 31, 83)
HSLhsl(224, 75%, 19%)
HSVhsv(224, 86%, 33%)
CMYKcmyk(85.5%, 62.7%, 0%, 67.5%)
CIE-LABlab(13.72, 14.43, -33.86)
CIE-LCHlch(13.72, 36.81, 293.08°)
OKLaboklab(26.15% -0.0086 -0.0978)
OKLCHoklch(26.15% 0.098 265)
XYZxyz(2.2024, 1.6824, 8.3906)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1F53 #53400C
analogous
#0C4253 #0C1F53 #1C0C53
triadic
#0C1F53 #530C1F #1F530C
tetradic
#0C1F53 #530C42 #53400C #0C531C
square
#0C1F53 #530C42 #53400C #0C531C
split-complementary
#0C1F53 #531C0C #42530C
monochromatic
#040A1B #040B1E #0C1F53 #143388 #1B47BE

Accessibility & contrast

On white

15.71
#0C1F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#0C1F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1F53
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1F53#FFFFFF#000000##FFFFFF
##0C1F531.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002655
Deuteranopia (green-blind)
#002052
Tritanopia (blue-blind)
#002C35
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0c1f53;
/* rgb */ color: rgb(12, 31, 83);
/* oklch */ color: oklch(26.2% 0.098 265.0);
Tailwind
colors: {
  custom: {
    50: '#585a84',
    500: '#0c1f53',
    950: '#000000',
  },
}
SCSS
$custom: #0c1f53;
$custom-light: #585a84;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1f53",
  "rgb": {
    "r": 12,
    "g": 31,
    "b": 83
  },
  "hsl": {
    "h": 223.944,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26153,
    "c": 0.09817,
    "h": 265
  },
  "luminance": 0.01683
}

Semantic roles & 50–950 ramp

primary
#0C1F53
secondary
#8E742D
accent
#BF36F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0C1F53

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

Preview Lab → · Contrast checker → · Palette generator →

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