#0C2957#0C2957

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

Color values

HEX#0C2957
RGBrgb(12, 41, 87)
HSLhsl(217, 76%, 19%)
HSVhsv(217, 86%, 34%)
CMYKcmyk(86.2%, 52.9%, 0%, 65.9%)
CIE-LABlab(17.23, 8.63, -30.87)
CIE-LCHlch(17.23, 32.05, 285.62°)
OKLaboklab(28.93% -0.0165 -0.0888)
OKLCHoklch(28.93% 0.09 259.5)
XYZxyz(2.6642, 2.3518, 9.3285)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2957 #573A0C
analogous
#0C4F57 #0C2957 #150C57
triadic
#0C2957 #570C29 #29570C
tetradic
#0C2957 #570C4F #573A0C #0C5715
square
#0C2957 #570C4F #573A0C #0C5715
split-complementary
#0C2957 #57150C #4F570C
monochromatic
#040D1B #051021 #0C2957 #13428D #1B5CC3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C2957#FFFFFF#000000##FFFFFF
##0C29571.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)
#0E2E59
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c2957;
/* rgb */ color: rgb(12, 41, 87);
/* oklch */ color: oklch(28.9% 0.090 259.5);
Tailwind
colors: {
  custom: {
    50: '#596287',
    500: '#0c2957',
    950: '#000000',
  },
}
SCSS
$custom: #0c2957;
$custom-light: #596287;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2957",
  "rgb": {
    "r": 12,
    "g": 41,
    "b": 87
  },
  "hsl": {
    "h": 216.8,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28926,
    "c": 0.09028,
    "h": 259.5
  },
  "luminance": 0.02352
}

Semantic roles & 50–950 ramp

primary
#0C2957
secondary
#926B2D
accent
#A935F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2957

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

Preview Lab → · Contrast checker → · Palette generator →

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