#0C2455#0C2455

#0C2455 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.5% C 0.094 H 262.4°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#0C2455
RGBrgb(12, 36, 85)
HSLhsl(220, 75%, 19%)
HSVhsv(220, 86%, 33%)
CMYKcmyk(85.9%, 57.6%, 0%, 66.7%)
CIE-LABlab(15.46, 11.51, -32.39)
CIE-LCHlch(15.46, 34.37, 289.56°)
OKLaboklab(27.52% -0.0124 -0.0933)
OKLCHoklch(27.52% 0.094 262.4)
XYZxyz(2.4216, 1.9955, 8.8501)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2455 #553D0C
analogous
#0C4955 #0C2455 #190C55
triadic
#0C2455 #550C24 #24550C
tetradic
#0C2455 #550C49 #553D0C #0C5519
square
#0C2455 #550C49 #553D0C #0C5519
split-complementary
#0C2455 #55190C #49550C
monochromatic
#040B1B #040D1F #0C2455 #143B8B #1B51C0

Accessibility & contrast

On white

15.01
#0C2455 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#0C2455 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2455
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2455#FFFFFF#000000##FFFFFF
##0C24551.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022A57
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#003038
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0c2455;
/* rgb */ color: rgb(12, 36, 85);
/* oklch */ color: oklch(27.5% 0.094 262.4);
Tailwind
colors: {
  custom: {
    50: '#595e85',
    500: '#0c2455',
    950: '#000000',
  },
}
SCSS
$custom: #0c2455;
$custom-light: #595e85;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2455",
  "rgb": {
    "r": 12,
    "g": 36,
    "b": 85
  },
  "hsl": {
    "h": 220.274,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27522,
    "c": 0.09418,
    "h": 262.4
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#0C2455
secondary
#906F2D
accent
#B436F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2455

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

Preview Lab → · Contrast checker → · Palette generator →

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