#0C2755#0C2755

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

Color values

HEX#0C2755
RGBrgb(12, 39, 85)
HSLhsl(218, 75%, 19%)
HSVhsv(218, 86%, 33%)
CMYKcmyk(85.9%, 54.1%, 0%, 66.7%)
CIE-LABlab(16.43, 9.24, -30.83)
CIE-LCHlch(16.43, 32.18, 286.68°)
OKLaboklab(28.26% -0.015 -0.0887)
OKLCHoklch(28.26% 0.09 260.4)
XYZxyz(2.5162, 2.1848, 8.8817)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2755 #553A0C
analogous
#0C4C55 #0C2755 #160C55
triadic
#0C2755 #550C27 #27550C
tetradic
#0C2755 #550C4C #553A0C #0C5516
square
#0C2755 #550C4C #553A0C #0C5516
split-complementary
#0C2755 #55160C #4C550C
monochromatic
#040C1B #040E1F #0C2755 #14408B #1B58C0

Accessibility & contrast

On white

14.61
#0C2755 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2755
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2755#FFFFFF#000000##FFFFFF
##0C27551.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c2755;
/* rgb */ color: rgb(12, 39, 85);
/* oklch */ color: oklch(28.3% 0.090 260.4);
Tailwind
colors: {
  custom: {
    50: '#586085',
    500: '#0c2755',
    950: '#000000',
  },
}
SCSS
$custom: #0c2755;
$custom-light: #586085;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2755",
  "rgb": {
    "r": 12,
    "g": 39,
    "b": 85
  },
  "hsl": {
    "h": 217.808,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28258,
    "c": 0.08995,
    "h": 260.4
  },
  "luminance": 0.02185
}

Semantic roles & 50–950 ramp

primary
#0C2755
secondary
#906B2D
accent
#AC36F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2755

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

Preview Lab → · Contrast checker → · Palette generator →

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