#0C275B#0C275B

#0C275B is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.099 H 261.8°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#0C275B
RGBrgb(12, 39, 91)
HSLhsl(219, 77%, 20%)
HSVhsv(219, 87%, 36%)
CMYKcmyk(86.8%, 57.1%, 0%, 64.3%)
CIE-LABlab(16.91, 11.91, -34.06)
CIE-LCHlch(16.91, 36.08, 289.27°)
OKLaboklab(28.78% -0.0142 -0.0982)
OKLCHoklch(28.78% 0.099 261.8)
XYZxyz(2.7648, 2.2842, 10.1907)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C275B #5B400C
analogous
#0C4E5B #0C275B #190C5B
triadic
#0C275B #5B0C27 #275B0C
tetradic
#0C275B #5B0C4E #5B400C #0C5B19
square
#0C275B #5B0C4E #5B400C #0C5B19
split-complementary
#0C275B #5B190C #4E5B0C
monochromatic
#040C1B #051025 #0C275B #133E91 #1A55C7

Accessibility & contrast

On white

14.41
#0C275B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C275B
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C275B#FFFFFF#000000##FFFFFF
##0C275B1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022D5D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#00343C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c275b;
/* rgb */ color: rgb(12, 39, 91);
/* oklch */ color: oklch(28.8% 0.099 261.8);
Tailwind
colors: {
  custom: {
    50: '#5a608a',
    500: '#0c275b',
    950: '#000000',
  },
}
SCSS
$custom: #0c275b;
$custom-light: #5a608a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c275b",
  "rgb": {
    "r": 12,
    "g": 39,
    "b": 91
  },
  "hsl": {
    "h": 219.494,
    "s": 76.699,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28781,
    "c": 0.09922,
    "h": 261.8
  },
  "luminance": 0.02285
}

Semantic roles & 50–950 ramp

primary
#0C275B
secondary
#96722D
accent
#B235F3
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040C
muted
#79797D

Preview Lab

Preview with #0C275B

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

Preview Lab → · Contrast checker → · Palette generator →

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