#0C275A#0C275A

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

Color values

HEX#0C275A
RGBrgb(12, 39, 90)
HSLhsl(219, 76%, 20%)
HSVhsv(219, 87%, 35%)
CMYKcmyk(86.7%, 56.7%, 0%, 64.7%)
CIE-LABlab(16.83, 11.46, -33.53)
CIE-LCHlch(16.83, 35.43, 288.87°)
OKLaboklab(28.69% -0.0143 -0.0966)
OKLCHoklch(28.69% 0.098 261.6)
XYZxyz(2.7219, 2.2671, 9.9650)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C275A #5A3F0C
analogous
#0C4E5A #0C275A #180C5A
triadic
#0C275A #5A0C27 #275A0C
tetradic
#0C275A #5A0C4E #5A3F0C #0C5A18
square
#0C275A #5A0C4E #5A3F0C #0C5A18
split-complementary
#0C275A #5A180C #4E5A0C
monochromatic
#040C1B #051024 #0C275A #133E90 #1A56C6

Accessibility & contrast

On white

14.45
#0C275A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C275A
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C275A#FFFFFF#000000##FFFFFF
##0C275A1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032D5C
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#00333C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c275a;
/* rgb */ color: rgb(12, 39, 90);
/* oklch */ color: oklch(28.7% 0.098 261.6);
Tailwind
colors: {
  custom: {
    50: '#5a6089',
    500: '#0c275a',
    950: '#000000',
  },
}
SCSS
$custom: #0c275a;
$custom-light: #5a6089;
$custom-dark: #000000;
JSON
{
  "hex": "#0c275a",
  "rgb": {
    "r": 12,
    "g": 39,
    "b": 90
  },
  "hsl": {
    "h": 219.231,
    "s": 76.471,
    "l": 20
  },
  "oklch": {
    "l": 0.28693,
    "c": 0.09769,
    "h": 261.6
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#0C275A
secondary
#95712D
accent
#B135F3
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C275A

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

Preview Lab → · Contrast checker → · Palette generator →

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