#0C2853#0C2853

#0C2853 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.3% C 0.085 H 259.0°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#0C2853
RGBrgb(12, 40, 83)
HSLhsl(216, 75%, 19%)
HSVhsv(216, 86%, 33%)
CMYKcmyk(85.5%, 51.8%, 0%, 67.5%)
CIE-LABlab(16.60, 7.60, -29.20)
CIE-LCHlch(16.60, 30.17, 284.59°)
OKLaboklab(28.34% -0.0163 -0.0839)
OKLCHoklch(28.34% 0.085 259)
XYZxyz(2.4712, 2.2200, 8.4802)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2853 #53370C
analogous
#0C4B53 #0C2853 #130C53
triadic
#0C2853 #530C28 #28530C
tetradic
#0C2853 #530C4B #53370C #0C5313
square
#0C2853 #530C4B #53370C #0C5313
split-complementary
#0C2853 #53130C #4B530C
monochromatic
#040D1B #040E1E #0C2853 #144288 #1B5CBE

Accessibility & contrast

On white

14.54
#0C2853 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2853
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2853#FFFFFF#000000##FFFFFF
##0C28531.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102C55
Deuteranopia (green-blind)
#002652
Tritanopia (blue-blind)
#003239
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0c2853;
/* rgb */ color: rgb(12, 40, 83);
/* oklch */ color: oklch(28.3% 0.085 259.0);
Tailwind
colors: {
  custom: {
    50: '#586184',
    500: '#0c2853',
    950: '#000000',
  },
}
SCSS
$custom: #0c2853;
$custom-light: #586184;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2853",
  "rgb": {
    "r": 12,
    "g": 40,
    "b": 83
  },
  "hsl": {
    "h": 216.338,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.28341,
    "c": 0.08546,
    "h": 259
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#0C2853
secondary
#8E682D
accent
#A836F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2853

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

Preview Lab → · Contrast checker → · Palette generator →

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