#0C295B#0C295B

#0C295B is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.096 H 260.6°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#0C295B
RGBrgb(12, 41, 91)
HSLhsl(218, 77%, 20%)
HSVhsv(218, 87%, 36%)
CMYKcmyk(86.8%, 54.9%, 0%, 64.3%)
CIE-LABlab(17.55, 10.41, -33.03)
CIE-LCHlch(17.55, 34.63, 287.49°)
OKLaboklab(29.27% -0.0158 -0.0951)
OKLCHoklch(29.27% 0.096 260.6)
XYZxyz(2.8322, 2.4190, 10.2132)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C295B #5B3E0C
analogous
#0C505B #0C295B #170C5B
triadic
#0C295B #5B0C29 #295B0C
tetradic
#0C295B #5B0C50 #5B3E0C #0C5B17
square
#0C295B #5B0C50 #5B3E0C #0C5B17
split-complementary
#0C295B #5B170C #505B0C
monochromatic
#040C1B #051125 #0C295B #134191 #1A5AC7

Accessibility & contrast

On white

14.15
#0C295B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#0C295B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C295B
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C295B#FFFFFF#000000##FFFFFF
##0C295B1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082F5D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#00353D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0c295b;
/* rgb */ color: rgb(12, 41, 91);
/* oklch */ color: oklch(29.3% 0.096 260.6);
Tailwind
colors: {
  custom: {
    50: '#5a628a',
    500: '#0c295b',
    950: '#000000',
  },
}
SCSS
$custom: #0c295b;
$custom-light: #5a628a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c295b",
  "rgb": {
    "r": 12,
    "g": 41,
    "b": 91
  },
  "hsl": {
    "h": 217.975,
    "s": 76.699,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29266,
    "c": 0.09644,
    "h": 260.6
  },
  "luminance": 0.02419
}

Semantic roles & 50–950 ramp

primary
#0C295B
secondary
#966F2D
accent
#AD35F3
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04050C
muted
#79797D

Preview Lab

Preview with #0C295B

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

Preview Lab → · Contrast checker → · Palette generator →

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