#0C2357#0C2357

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

Color values

HEX#0C2357
RGBrgb(12, 35, 87)
HSLhsl(222, 76%, 19%)
HSVhsv(222, 86%, 34%)
CMYKcmyk(86.2%, 59.8%, 0%, 65.9%)
CIE-LABlab(15.32, 13.15, -33.97)
CIE-LCHlch(15.32, 36.43, 291.16°)
OKLaboklab(27.47% -0.0114 -0.098)
OKLCHoklch(27.47% 0.099 263.3)
XYZxyz(2.4723, 1.9681, 9.2645)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2357 #57400C
analogous
#0C4957 #0C2357 #1B0C57
triadic
#0C2357 #570C23 #23570C
tetradic
#0C2357 #570C49 #57400C #0C571B
square
#0C2357 #570C49 #57400C #0C571B
split-complementary
#0C2357 #571B0C #49570C
monochromatic
#040B1B #050D21 #0C2357 #13398D #1B4EC3

Accessibility & contrast

On white

15.07
#0C2357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2357
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2357#FFFFFF#000000##FFFFFF
##0C23571.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#003039
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0c2357;
/* rgb */ color: rgb(12, 35, 87);
/* oklch */ color: oklch(27.5% 0.099 263.3);
Tailwind
colors: {
  custom: {
    50: '#595d87',
    500: '#0c2357',
    950: '#000000',
  },
}
SCSS
$custom: #0c2357;
$custom-light: #595d87;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2357",
  "rgb": {
    "r": 12,
    "g": 35,
    "b": 87
  },
  "hsl": {
    "h": 221.6,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27466,
    "c": 0.09869,
    "h": 263.3
  },
  "luminance": 0.01968
}

Semantic roles & 50–950 ramp

primary
#0C2357
secondary
#92732D
accent
#B835F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2357

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

Preview Lab → · Contrast checker → · Palette generator →

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