#0C2659#0C2659

#0C2659 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.4% C 0.098 H 262.0°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#0C2659
RGBrgb(12, 38, 89)
HSLhsl(220, 76%, 20%)
HSVhsv(220, 87%, 35%)
CMYKcmyk(86.5%, 57.3%, 0%, 65.1%)
CIE-LABlab(16.43, 11.77, -33.50)
CIE-LCHlch(16.43, 35.51, 289.36°)
OKLaboklab(28.36% -0.0136 -0.0966)
OKLCHoklch(28.36% 0.098 262)
XYZxyz(2.6473, 2.1853, 9.7315)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2659 #593F0C
analogous
#0C4D59 #0C2659 #180C59
triadic
#0C2659 #590C26 #26590C
tetradic
#0C2659 #590C4D #593F0C #0C5918
square
#0C2659 #590C4D #593F0C #0C5918
split-complementary
#0C2659 #59180C #4D590C
monochromatic
#040C1B #050F23 #0C2659 #133D8F #1B54C5

Accessibility & contrast

On white

14.61
#0C2659 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#0C2659 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2659
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2659#FFFFFF#000000##FFFFFF
##0C26591.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022C5B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#00333B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0c2659;
/* rgb */ color: rgb(12, 38, 89);
/* oklch */ color: oklch(28.4% 0.098 262.0);
Tailwind
colors: {
  custom: {
    50: '#5a5f88',
    500: '#0c2659',
    950: '#000000',
  },
}
SCSS
$custom: #0c2659;
$custom-light: #5a5f88;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2659",
  "rgb": {
    "r": 12,
    "g": 38,
    "b": 89
  },
  "hsl": {
    "h": 219.74,
    "s": 76.238,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28363,
    "c": 0.09756,
    "h": 262
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

primary
#0C2659
secondary
#94712D
accent
#B335F3
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2659

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

Preview Lab → · Contrast checker → · Palette generator →

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