#0C255F#0C255F

#0C255F is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.7% C 0.108 H 263.5°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#0C255F
RGBrgb(12, 37, 95)
HSLhsl(222, 78%, 21%)
HSVhsv(222, 87%, 37%)
CMYKcmyk(87.4%, 61.1%, 0%, 62.7%)
CIE-LABlab(16.64, 15.17, -37.17)
CIE-LCHlch(16.64, 40.14, 292.20°)
OKLaboklab(28.68% -0.0123 -0.1074)
OKLCHoklch(28.68% 0.108 263.5)
XYZxyz(2.8780, 2.2272, 11.1025)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C255F #5F460C
analogous
#0C4E5F #0C255F #1C0C5F
triadic
#0C255F #5F0C25 #255F0C
tetradic
#0C255F #5F0C4E #5F460C #0C5F1C
square
#0C255F #5F0C4E #5F460C #0C5F1C
split-complementary
#0C255F #5F1C0C #4E5F0C
monochromatic
#030B1B #051029 #0C255F #133A95 #1A4FCC

Accessibility & contrast

On white

14.53
#0C255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#0C255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C255F
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C255F#FFFFFF#000000##FFFFFF
##0C255F1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#00343E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0c255f;
/* rgb */ color: rgb(12, 37, 95);
/* oklch */ color: oklch(28.7% 0.108 263.5);
Tailwind
colors: {
  custom: {
    50: '#5c5f8d',
    500: '#0c255f',
    950: '#000000',
  },
}
SCSS
$custom: #0c255f;
$custom-light: #5c5f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c255f",
  "rgb": {
    "r": 12,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 221.928,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28681,
    "c": 0.10808,
    "h": 263.5
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#0C255F
secondary
#99792D
accent
#BA34F4
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0C255F

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

Preview Lab → · Contrast checker → · Palette generator →

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