#0C2C5F#0C2C5F

#0C2C5F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.3% C 0.098 H 259.6°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#0C2C5F
RGBrgb(12, 44, 95)
HSLhsl(217, 78%, 21%)
HSVhsv(217, 87%, 37%)
CMYKcmyk(87.4%, 53.7%, 0%, 62.7%)
CIE-LABlab(18.82, 9.94, -33.62)
CIE-LCHlch(18.82, 35.06, 286.48°)
OKLaboklab(30.34% -0.0177 -0.0968)
OKLCHoklch(30.34% 0.098 259.6)
XYZxyz(3.1171, 2.7054, 11.1822)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2C5F #5F3F0C
analogous
#0C555F #0C2C5F #150C5F
triadic
#0C2C5F #5F0C2C #2C5F0C
tetradic
#0C2C5F #5F0C55 #5F3F0C #0C5F15
square
#0C2C5F #5F0C55 #5F3F0C #0C5F15
split-complementary
#0C2C5F #5F150C #555F0C
monochromatic
#030D1B #051329 #0C2C5F #134595 #1A5ECC

Accessibility & contrast

On white

13.63
#0C2C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#0C2C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2C5F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2C5F#FFFFFF#000000##FFFFFF
##0C2C5F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3261
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#003841
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #0c2c5f;
/* rgb */ color: rgb(12, 44, 95);
/* oklch */ color: oklch(30.3% 0.098 259.6);
Tailwind
colors: {
  custom: {
    50: '#5b648d',
    500: '#0c2c5f',
    950: '#000000',
  },
}
SCSS
$custom: #0c2c5f;
$custom-light: #5b648d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2c5f",
  "rgb": {
    "r": 12,
    "g": 44,
    "b": 95
  },
  "hsl": {
    "h": 216.867,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30341,
    "c": 0.0984,
    "h": 259.6
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#0C2C5F
secondary
#99702D
accent
#AA34F4
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#04050C
muted
#79797D

Preview Lab

Preview with #0C2C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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