#0C285F#0C285F

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

Color values

HEX#0C285F
RGBrgb(12, 40, 95)
HSLhsl(220, 78%, 21%)
HSVhsv(220, 87%, 37%)
CMYKcmyk(87.4%, 57.9%, 0%, 62.7%)
CIE-LABlab(17.56, 12.92, -35.66)
CIE-LCHlch(17.56, 37.93, 289.92°)
OKLaboklab(29.38% -0.0145 -0.1029)
OKLCHoklch(29.38% 0.104 262)
XYZxyz(2.9752, 2.4216, 11.1349)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C285F #5F430C
analogous
#0C515F #0C285F #190C5F
triadic
#0C285F #5F0C28 #285F0C
tetradic
#0C285F #5F0C51 #5F430C #0C5F19
square
#0C285F #5F0C51 #5F430C #0C5F19
split-complementary
#0C285F #5F190C #515F0C
monochromatic
#030B1B #051129 #0C285F #133F95 #1A56CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C285F#FFFFFF#000000##FFFFFF
##0C285F1.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)
#002F61
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0c285f;
/* rgb */ color: rgb(12, 40, 95);
/* oklch */ color: oklch(29.4% 0.104 262.0);
Tailwind
colors: {
  custom: {
    50: '#5b618d',
    500: '#0c285f',
    950: '#000000',
  },
}
SCSS
$custom: #0c285f;
$custom-light: #5b618d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c285f",
  "rgb": {
    "r": 12,
    "g": 40,
    "b": 95
  },
  "hsl": {
    "h": 219.759,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29378,
    "c": 0.10393,
    "h": 262
  },
  "luminance": 0.02422
}

Semantic roles & 50–950 ramp

primary
#0C285F
secondary
#99752D
accent
#B334F4
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #0C285F

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

Preview Lab → · Contrast checker → · Palette generator →

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