#0C275F#0C275F

#0C275F is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.1% C 0.105 H 262.5°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#0C275F
RGBrgb(12, 39, 95)
HSLhsl(220, 78%, 21%)
HSVhsv(220, 87%, 37%)
CMYKcmyk(87.4%, 58.9%, 0%, 62.7%)
CIE-LABlab(17.25, 13.67, -36.17)
CIE-LCHlch(17.25, 38.67, 290.70°)
OKLaboklab(29.14% -0.0138 -0.1044)
OKLCHoklch(29.14% 0.105 262.5)
XYZxyz(2.9420, 2.3551, 11.1238)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C275F #5F440C
analogous
#0C505F #0C275F #1A0C5F
triadic
#0C275F #5F0C27 #275F0C
tetradic
#0C275F #5F0C50 #5F440C #0C5F1A
square
#0C275F #5F0C50 #5F440C #0C5F1A
split-complementary
#0C275F #5F1A0C #505F0C
monochromatic
#030B1B #051129 #0C275F #133D95 #1A54CC

Accessibility & contrast

On white

14.28
#0C275F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#0C275F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C275F
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C275F#FFFFFF#000000##FFFFFF
##0C275F1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#00353E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c275f;
/* rgb */ color: rgb(12, 39, 95);
/* oklch */ color: oklch(29.1% 0.105 262.5);
Tailwind
colors: {
  custom: {
    50: '#5b608d',
    500: '#0c275f',
    950: '#000000',
  },
}
SCSS
$custom: #0c275f;
$custom-light: #5b608d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c275f",
  "rgb": {
    "r": 12,
    "g": 39,
    "b": 95
  },
  "hsl": {
    "h": 220.482,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29143,
    "c": 0.10531,
    "h": 262.5
  },
  "luminance": 0.02355
}

Semantic roles & 50–950 ramp

primary
#0C275F
secondary
#99762D
accent
#B634F4
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0C275F

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

Preview Lab → · Contrast checker → · Palette generator →

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