#0C274F#0C274F

#0C274F is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.8% C 0.081 H 258.5°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#0C274F
RGBrgb(12, 39, 79)
HSLhsl(216, 74%, 18%)
HSVhsv(216, 85%, 31%)
CMYKcmyk(84.8%, 50.6%, 0%, 69%)
CIE-LABlab(15.97, 6.57, -27.51)
CIE-LCHlch(15.97, 28.28, 283.42°)
OKLaboklab(27.76% -0.0161 -0.0789)
OKLCHoklch(27.76% 0.081 258.5)
XYZxyz(2.2879, 2.0934, 7.6791)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C274F #4F340C
analogous
#0C484F #0C274F #130C4F
triadic
#0C274F #4F0C27 #274F0C
tetradic
#0C274F #4F0C48 #4F340C #0C4F13
square
#0C274F #4F0C48 #4F340C #0C4F13
split-complementary
#0C274F #4F130C #484F0C
monochromatic
#040D1B #040D1B #0C274F #144184 #1C5BB9

Accessibility & contrast

On white

14.80
#0C274F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#0C274F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C274F
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C274F#FFFFFF#000000##FFFFFF
##0C274F1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122B51
Deuteranopia (green-blind)
#03254E
Tritanopia (blue-blind)
#003137
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0c274f;
/* rgb */ color: rgb(12, 39, 79);
/* oklch */ color: oklch(27.8% 0.081 258.5);
Tailwind
colors: {
  custom: {
    50: '#576081',
    500: '#0c274f',
    950: '#000000',
  },
}
SCSS
$custom: #0c274f;
$custom-light: #576081;
$custom-dark: #000000;
JSON
{
  "hex": "#0c274f",
  "rgb": {
    "r": 12,
    "g": 39,
    "b": 79
  },
  "hsl": {
    "h": 215.821,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.27759,
    "c": 0.08057,
    "h": 258.5
  },
  "luminance": 0.02094
}

Semantic roles & 50–950 ramp

primary
#0C274F
secondary
#8B652C
accent
#A638F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #0C274F

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

Preview Lab → · Contrast checker → · Palette generator →

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