#0C2557#0C2557

#0C2557 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.9% C 0.096 H 262.2°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#0C2557
RGBrgb(12, 37, 87)
HSLhsl(220, 76%, 19%)
HSVhsv(220, 86%, 34%)
CMYKcmyk(86.2%, 57.5%, 0%, 65.9%)
CIE-LABlab(15.95, 11.64, -32.95)
CIE-LCHlch(15.95, 34.94, 289.46°)
OKLaboklab(27.94% -0.013 -0.095)
OKLCHoklch(27.94% 0.096 262.2)
XYZxyz(2.5329, 2.0891, 9.2847)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2557 #573E0C
analogous
#0C4B57 #0C2557 #190C57
triadic
#0C2557 #570C25 #25570C
tetradic
#0C2557 #570C4B #573E0C #0C5719
square
#0C2557 #570C4B #573E0C #0C5719
split-complementary
#0C2557 #57190C #4B570C
monochromatic
#040B1B #050E21 #0C2557 #133C8D #1B53C3

Accessibility & contrast

On white

14.81
#0C2557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2557
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2557#FFFFFF#000000##FFFFFF
##0C25571.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022B59
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#00313A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0c2557;
/* rgb */ color: rgb(12, 37, 87);
/* oklch */ color: oklch(27.9% 0.096 262.2);
Tailwind
colors: {
  custom: {
    50: '#595e87',
    500: '#0c2557',
    950: '#000000',
  },
}
SCSS
$custom: #0c2557;
$custom-light: #595e87;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2557",
  "rgb": {
    "r": 12,
    "g": 37,
    "b": 87
  },
  "hsl": {
    "h": 220,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27943,
    "c": 0.09587,
    "h": 262.2
  },
  "luminance": 0.02089
}

Semantic roles & 50–950 ramp

primary
#0C2557
secondary
#92702D
accent
#B335F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2557

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

Preview Lab → · Contrast checker → · Palette generator →

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