#0C2857#0C2857

#0C2857 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.7% C 0.092 H 260.2°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#0C2857
RGBrgb(12, 40, 87)
HSLhsl(218, 76%, 19%)
HSVhsv(218, 86%, 34%)
CMYKcmyk(86.2%, 54%, 0%, 65.9%)
CIE-LABlab(16.91, 9.38, -31.39)
CIE-LCHlch(16.91, 32.76, 286.63°)
OKLaboklab(28.68% -0.0156 -0.0903)
OKLCHoklch(28.68% 0.092 260.2)
XYZxyz(2.6301, 2.2836, 9.3171)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2857 #573B0C
analogous
#0C4E57 #0C2857 #160C57
triadic
#0C2857 #570C28 #28570C
tetradic
#0C2857 #570C4E #573B0C #0C5716
square
#0C2857 #570C4E #573B0C #0C5716
split-complementary
#0C2857 #57160C #4E570C
monochromatic
#040C1B #050F21 #0C2857 #13418D #1B59C3

Accessibility & contrast

On white

14.42
#0C2857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#0C2857 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2857
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2857#FFFFFF#000000##FFFFFF
##0C28571.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2D59
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#00333B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c2857;
/* rgb */ color: rgb(12, 40, 87);
/* oklch */ color: oklch(28.7% 0.092 260.2);
Tailwind
colors: {
  custom: {
    50: '#596187',
    500: '#0c2857',
    950: '#000000',
  },
}
SCSS
$custom: #0c2857;
$custom-light: #596187;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2857",
  "rgb": {
    "r": 12,
    "g": 40,
    "b": 87
  },
  "hsl": {
    "h": 217.6,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28677,
    "c": 0.09166,
    "h": 260.2
  },
  "luminance": 0.02284
}

Semantic roles & 50–950 ramp

primary
#0C2857
secondary
#926C2D
accent
#AC35F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2857

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

Preview Lab → · Contrast checker → · Palette generator →

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