#0C2355#0C2355

#0C2355 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.096 H 263.0°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#0C2355
RGBrgb(12, 35, 85)
HSLhsl(221, 75%, 19%)
HSVhsv(221, 86%, 33%)
CMYKcmyk(85.9%, 58.8%, 0%, 66.7%)
CIE-LABlab(15.15, 12.27, -32.90)
CIE-LCHlch(15.15, 35.11, 290.45°)
OKLaboklab(27.28% -0.0116 -0.0949)
OKLCHoklch(27.28% 0.096 263)
XYZxyz(2.3918, 1.9358, 8.8402)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2355 #553E0C
analogous
#0C4855 #0C2355 #1A0C55
triadic
#0C2355 #550C23 #23550C
tetradic
#0C2355 #550C48 #553E0C #0C551A
square
#0C2355 #550C48 #553E0C #0C551A
split-complementary
#0C2355 #551A0C #48550C
monochromatic
#040B1B #040D1F #0C2355 #14398B #1B4FC0

Accessibility & contrast

On white

15.14
#0C2355 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#0C2355 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2355
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2355#FFFFFF#000000##FFFFFF
##0C23551.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0c2355;
/* rgb */ color: rgb(12, 35, 85);
/* oklch */ color: oklch(27.3% 0.096 263.0);
Tailwind
colors: {
  custom: {
    50: '#595d85',
    500: '#0c2355',
    950: '#000000',
  },
}
SCSS
$custom: #0c2355;
$custom-light: #595d85;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2355",
  "rgb": {
    "r": 12,
    "g": 35,
    "b": 85
  },
  "hsl": {
    "h": 221.096,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27282,
    "c": 0.0956,
    "h": 263
  },
  "luminance": 0.01936
}

Semantic roles & 50–950 ramp

primary
#0C2355
secondary
#90712D
accent
#B736F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2355

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

Preview Lab → · Contrast checker → · Palette generator →

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