#0C2A5F#0C2A5F

#0C2A5F is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.9% C 0.101 H 260.9°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#0C2A5F
RGBrgb(12, 42, 95)
HSLhsl(218, 78%, 21%)
HSVhsv(218, 87%, 37%)
CMYKcmyk(87.4%, 55.8%, 0%, 62.7%)
CIE-LABlab(18.19, 11.43, -34.65)
CIE-LCHlch(18.19, 36.48, 288.26°)
OKLaboklab(29.85% -0.0161 -0.0999)
OKLCHoklch(29.85% 0.101 260.9)
XYZxyz(3.0444, 2.5599, 11.1579)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2A5F #5F410C
analogous
#0C535F #0C2A5F #170C5F
triadic
#0C2A5F #5F0C2A #2A5F0C
tetradic
#0C2A5F #5F0C53 #5F410C #0C5F17
square
#0C2A5F #5F0C53 #5F410C #0C5F17
split-complementary
#0C2A5F #5F170C #535F0C
monochromatic
#030C1B #051229 #0C2A5F #134295 #1A5ACC

Accessibility & contrast

On white

13.89
#0C2A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#0C2A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2A5F
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2A5F#FFFFFF#000000##FFFFFF
##0C2A5F1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053061
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#003740
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0c2a5f;
/* rgb */ color: rgb(12, 42, 95);
/* oklch */ color: oklch(29.9% 0.101 260.9);
Tailwind
colors: {
  custom: {
    50: '#5b628d',
    500: '#0c2a5f',
    950: '#000000',
  },
}
SCSS
$custom: #0c2a5f;
$custom-light: #5b628d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2a5f",
  "rgb": {
    "r": 12,
    "g": 42,
    "b": 95
  },
  "hsl": {
    "h": 218.313,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29855,
    "c": 0.10116,
    "h": 260.9
  },
  "luminance": 0.0256
}

Semantic roles & 50–950 ramp

primary
#0C2A5F
secondary
#99722D
accent
#AF34F4
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #0C2A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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