#0C2754#0C2754

#0C2754 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.2% C 0.088 H 260.1°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#0C2754
RGBrgb(12, 39, 84)
HSLhsl(218, 75%, 19%)
HSVhsv(218, 86%, 33%)
CMYKcmyk(85.7%, 53.6%, 0%, 67.1%)
CIE-LABlab(16.35, 8.80, -30.28)
CIE-LCHlch(16.35, 31.53, 286.20°)
OKLaboklab(28.17% -0.0152 -0.0871)
OKLCHoklch(28.17% 0.088 260.1)
XYZxyz(2.4768, 2.1690, 8.6739)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2754 #54390C
analogous
#0C4B54 #0C2754 #150C54
triadic
#0C2754 #540C27 #27540C
tetradic
#0C2754 #540C4B #54390C #0C5415
square
#0C2754 #540C4B #54390C #0C5415
split-complementary
#0C2754 #54150C #4B540C
monochromatic
#040C1B #040E1E #0C2754 #14408A #1B59BF

Accessibility & contrast

On white

14.65
#0C2754 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#0C2754 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2754
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2754#FFFFFF#000000##FFFFFF
##0C27541.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2C56
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#003239
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0c2754;
/* rgb */ color: rgb(12, 39, 84);
/* oklch */ color: oklch(28.2% 0.088 260.1);
Tailwind
colors: {
  custom: {
    50: '#586084',
    500: '#0c2754',
    950: '#000000',
  },
}
SCSS
$custom: #0c2754;
$custom-light: #586084;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2754",
  "rgb": {
    "r": 12,
    "g": 39,
    "b": 84
  },
  "hsl": {
    "h": 217.5,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28173,
    "c": 0.0884,
    "h": 260.1
  },
  "luminance": 0.02169
}

Semantic roles & 50–950 ramp

primary
#0C2754
secondary
#8F6A2D
accent
#AB36F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2754

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

Preview Lab → · Contrast checker → · Palette generator →

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