#0C2658#0C2658

#0C2658 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.3% C 0.096 H 261.8°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#0C2658
RGBrgb(12, 38, 88)
HSLhsl(219, 76%, 20%)
HSVhsv(219, 86%, 35%)
CMYKcmyk(86.4%, 56.8%, 0%, 65.5%)
CIE-LABlab(16.35, 11.33, -32.97)
CIE-LCHlch(16.35, 34.86, 288.96°)
OKLaboklab(28.27% -0.0137 -0.095)
OKLCHoklch(28.27% 0.096 261.8)
XYZxyz(2.6055, 2.1687, 9.5119)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2658 #583E0C
analogous
#0C4C58 #0C2658 #180C58
triadic
#0C2658 #580C26 #26580C
tetradic
#0C2658 #580C4C #583E0C #0C5818
square
#0C2658 #580C4C #583E0C #0C5818
split-complementary
#0C2658 #58180C #4C580C
monochromatic
#040C1B #050F22 #0C2658 #133D8E #1B55C4

Accessibility & contrast

On white

14.65
#0C2658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2658
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2658#FFFFFF#000000##FFFFFF
##0C26581.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032C5A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#00323B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0c2658;
/* rgb */ color: rgb(12, 38, 88);
/* oklch */ color: oklch(28.3% 0.096 261.8);
Tailwind
colors: {
  custom: {
    50: '#595f88',
    500: '#0c2658',
    950: '#000000',
  },
}
SCSS
$custom: #0c2658;
$custom-light: #595f88;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2658",
  "rgb": {
    "r": 12,
    "g": 38,
    "b": 88
  },
  "hsl": {
    "h": 219.474,
    "s": 76,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28274,
    "c": 0.09601,
    "h": 261.8
  },
  "luminance": 0.02169
}

Semantic roles & 50–950 ramp

primary
#0C2658
secondary
#93702D
accent
#B235F3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2658

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

Preview Lab → · Contrast checker → · Palette generator →

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