#0C295F#0C295F

#0C295F is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.6% C 0.103 H 261.4°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#0C295F
RGBrgb(12, 41, 95)
HSLhsl(219, 78%, 21%)
HSVhsv(219, 87%, 37%)
CMYKcmyk(87.4%, 56.8%, 0%, 62.7%)
CIE-LABlab(17.87, 12.18, -35.16)
CIE-LCHlch(17.87, 37.21, 289.10°)
OKLaboklab(29.62% -0.0153 -0.1014)
OKLCHoklch(29.62% 0.103 261.4)
XYZxyz(3.0094, 2.4899, 11.1462)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C295F #5F420C
analogous
#0C525F #0C295F #180C5F
triadic
#0C295F #5F0C29 #295F0C
tetradic
#0C295F #5F0C52 #5F420C #0C5F18
square
#0C295F #5F0C52 #5F420C #0C5F18
split-complementary
#0C295F #5F180C #525F0C
monochromatic
#030C1B #051229 #0C295F #134095 #1A58CC

Accessibility & contrast

On white

14.02
#0C295F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#0C295F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C295F
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C295F#FFFFFF#000000##FFFFFF
##0C295F1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023061
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0c295f;
/* rgb */ color: rgb(12, 41, 95);
/* oklch */ color: oklch(29.6% 0.103 261.4);
Tailwind
colors: {
  custom: {
    50: '#5b628d',
    500: '#0c295f',
    950: '#000000',
  },
}
SCSS
$custom: #0c295f;
$custom-light: #5b628d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c295f",
  "rgb": {
    "r": 12,
    "g": 41,
    "b": 95
  },
  "hsl": {
    "h": 219.036,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29616,
    "c": 0.10254,
    "h": 261.4
  },
  "luminance": 0.0249
}

Semantic roles & 50–950 ramp

primary
#0C295F
secondary
#99742D
accent
#B134F4
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #0C295F

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

Preview Lab → · Contrast checker → · Palette generator →

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