#0C2855#0C2855

#0C2855 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.5% C 0.089 H 259.7°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#0C2855
RGBrgb(12, 40, 85)
HSLhsl(217, 75%, 19%)
HSVhsv(217, 86%, 33%)
CMYKcmyk(85.9%, 52.9%, 0%, 66.7%)
CIE-LABlab(16.75, 8.49, -30.30)
CIE-LCHlch(16.75, 31.47, 285.65°)
OKLaboklab(28.51% -0.0159 -0.0871)
OKLCHoklch(28.51% 0.089 259.7)
XYZxyz(2.5495, 2.2513, 8.8927)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2855 #55390C
analogous
#0C4D55 #0C2855 #140C55
triadic
#0C2855 #550C28 #28550C
tetradic
#0C2855 #550C4D #55390C #0C5514
square
#0C2855 #550C4D #55390C #0C5514
split-complementary
#0C2855 #55140C #4D550C
monochromatic
#040D1B #040F1F #0C2855 #14418B #1B5AC0

Accessibility & contrast

On white

14.48
#0C2855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#0C2855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2855
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2855#FFFFFF#000000##FFFFFF
##0C28551.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2D57
Deuteranopia (green-blind)
#002654
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0c2855;
/* rgb */ color: rgb(12, 40, 85);
/* oklch */ color: oklch(28.5% 0.089 259.7);
Tailwind
colors: {
  custom: {
    50: '#586185',
    500: '#0c2855',
    950: '#000000',
  },
}
SCSS
$custom: #0c2855;
$custom-light: #586185;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2855",
  "rgb": {
    "r": 12,
    "g": 40,
    "b": 85
  },
  "hsl": {
    "h": 216.986,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28508,
    "c": 0.08856,
    "h": 259.7
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#0C2855
secondary
#906A2D
accent
#AA36F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2855

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

Preview Lab → · Contrast checker → · Palette generator →

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