#0C2657#0C2657

#0C2657 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.2% C 0.094 H 261.6°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#0C2657
RGBrgb(12, 38, 87)
HSLhsl(219, 76%, 19%)
HSVhsv(219, 86%, 34%)
CMYKcmyk(86.2%, 56.3%, 0%, 65.9%)
CIE-LABlab(16.27, 10.88, -32.43)
CIE-LCHlch(16.27, 34.21, 288.55°)
OKLaboklab(28.19% -0.0139 -0.0934)
OKLCHoklch(28.19% 0.094 261.6)
XYZxyz(2.5644, 2.1522, 9.2952)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2657 #573D0C
analogous
#0C4C57 #0C2657 #180C57
triadic
#0C2657 #570C26 #26570C
tetradic
#0C2657 #570C4C #573D0C #0C5718
square
#0C2657 #570C4C #573D0C #0C5718
split-complementary
#0C2657 #57180C #4C570C
monochromatic
#040C1B #050F21 #0C2657 #133D8D #1B55C3

Accessibility & contrast

On white

14.68
#0C2657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#0C2657 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2657
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2657#FFFFFF#000000##FFFFFF
##0C26571.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052C59
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#00323A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0c2657;
/* rgb */ color: rgb(12, 38, 87);
/* oklch */ color: oklch(28.2% 0.094 261.6);
Tailwind
colors: {
  custom: {
    50: '#595f87',
    500: '#0c2657',
    950: '#000000',
  },
}
SCSS
$custom: #0c2657;
$custom-light: #595f87;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2657",
  "rgb": {
    "r": 12,
    "g": 38,
    "b": 87
  },
  "hsl": {
    "h": 219.2,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28185,
    "c": 0.09446,
    "h": 261.6
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#0C2657
secondary
#926F2D
accent
#B135F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2657

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

Preview Lab → · Contrast checker → · Palette generator →

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