#0C2B57#0C2B57

#0C2B57 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.4% C 0.088 H 258.0°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#0C2B57
RGBrgb(12, 43, 87)
HSLhsl(215, 76%, 19%)
HSVhsv(215, 86%, 34%)
CMYKcmyk(86.2%, 50.6%, 0%, 65.9%)
CIE-LABlab(17.89, 7.14, -29.81)
CIE-LCHlch(17.89, 30.66, 283.48°)
OKLaboklab(29.43% -0.0182 -0.0856)
OKLCHoklch(29.43% 0.088 258)
XYZxyz(2.7352, 2.4937, 9.3522)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2B57 #57380C
analogous
#0C5157 #0C2B57 #130C57
triadic
#0C2B57 #570C2B #2B570C
tetradic
#0C2B57 #570C51 #57380C #0C5713
square
#0C2B57 #570C51 #57380C #0C5713
split-complementary
#0C2B57 #57130C #51570C
monochromatic
#040D1B #051021 #0C2B57 #13468D #1B60C3

Accessibility & contrast

On white

14.01
#0C2B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#0C2B57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2B57
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2B57#FFFFFF#000000##FFFFFF
##0C2B571.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132F59
Deuteranopia (green-blind)
#012956
Tritanopia (blue-blind)
#00363C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0c2b57;
/* rgb */ color: rgb(12, 43, 87);
/* oklch */ color: oklch(29.4% 0.088 258.0);
Tailwind
colors: {
  custom: {
    50: '#596387',
    500: '#0c2b57',
    950: '#000000',
  },
}
SCSS
$custom: #0c2b57;
$custom-light: #596387;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2b57",
  "rgb": {
    "r": 12,
    "g": 43,
    "b": 87
  },
  "hsl": {
    "h": 215.2,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2943,
    "c": 0.08754,
    "h": 258
  },
  "luminance": 0.02494
}

Semantic roles & 50–950 ramp

primary
#0C2B57
secondary
#92682D
accent
#A435F2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2B57

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

Preview Lab → · Contrast checker → · Palette generator →

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