#0C2D5F#0C2D5F

#0C2D5F is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.6% C 0.097 H 259.0°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#0C2D5F
RGBrgb(12, 45, 95)
HSLhsl(216, 78%, 21%)
HSVhsv(216, 87%, 37%)
CMYKcmyk(87.4%, 52.6%, 0%, 62.7%)
CIE-LABlab(19.14, 9.21, -33.10)
CIE-LCHlch(19.14, 34.36, 285.54°)
OKLaboklab(30.59% -0.0185 -0.0952)
OKLCHoklch(30.59% 0.097 259)
XYZxyz(3.1548, 2.7808, 11.1947)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2D5F #5F3E0C
analogous
#0C565F #0C2D5F #150C5F
triadic
#0C2D5F #5F0C2D #2D5F0C
tetradic
#0C2D5F #5F0C56 #5F3E0C #0C5F15
square
#0C2D5F #5F0C56 #5F3E0C #0C5F15
split-complementary
#0C2D5F #5F150C #565F0C
monochromatic
#030D1B #051329 #0C2D5F #134795 #1A60CC

Accessibility & contrast

On white

13.49
#0C2D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#0C2D5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2D5F
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2D5F#FFFFFF#000000##FFFFFF
##0C2D5F1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3261
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#003941
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #0c2d5f;
/* rgb */ color: rgb(12, 45, 95);
/* oklch */ color: oklch(30.6% 0.097 259.0);
Tailwind
colors: {
  custom: {
    50: '#5b658d',
    500: '#0c2d5f',
    950: '#000000',
  },
}
SCSS
$custom: #0c2d5f;
$custom-light: #5b658d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2d5f",
  "rgb": {
    "r": 12,
    "g": 45,
    "b": 95
  },
  "hsl": {
    "h": 216.145,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30587,
    "c": 0.09704,
    "h": 259
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

primary
#0C2D5F
secondary
#996E2D
accent
#A834F4
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04050C
muted
#797A7D

Preview Lab

Preview with #0C2D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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