#0C2850#0C2850

#0C2850 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.1% C 0.081 H 257.9°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#0C2850
RGBrgb(12, 40, 80)
HSLhsl(215, 74%, 18%)
HSVhsv(215, 85%, 31%)
CMYKcmyk(85%, 50%, 0%, 68.6%)
CIE-LABlab(16.38, 6.26, -27.53)
CIE-LCHlch(16.38, 28.24, 282.81°)
OKLaboklab(28.1% -0.0169 -0.079)
OKLCHoklch(28.1% 0.081 257.9)
XYZxyz(2.3578, 2.1747, 7.8833)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2850 #50340C
analogous
#0C4A50 #0C2850 #120C50
triadic
#0C2850 #500C28 #28500C
tetradic
#0C2850 #500C4A #50340C #0C5012
square
#0C2850 #500C4A #50340C #0C5012
split-complementary
#0C2850 #50120C #4A500C
monochromatic
#040D1B #040D1B #0C2850 #144385 #1C5DBA

Accessibility & contrast

On white

14.63
#0C2850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#0C2850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2850
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2850#FFFFFF#000000##FFFFFF
##0C28501.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132C52
Deuteranopia (green-blind)
#04264F
Tritanopia (blue-blind)
#003238
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0c2850;
/* rgb */ color: rgb(12, 40, 80);
/* oklch */ color: oklch(28.1% 0.081 257.9);
Tailwind
colors: {
  custom: {
    50: '#576181',
    500: '#0c2850',
    950: '#000000',
  },
}
SCSS
$custom: #0c2850;
$custom-light: #576181;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2850",
  "rgb": {
    "r": 12,
    "g": 40,
    "b": 80
  },
  "hsl": {
    "h": 215.294,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28098,
    "c": 0.08076,
    "h": 257.9
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

primary
#0C2850
secondary
#8B642C
accent
#A437F1
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #0C2850

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

Preview Lab → · Contrast checker → · Palette generator →

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