#0C265F#0C265F

#0C265F is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.9% C 0.107 H 263.0°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#0C265F
RGBrgb(12, 38, 95)
HSLhsl(221, 78%, 21%)
HSVhsv(221, 87%, 37%)
CMYKcmyk(87.4%, 60%, 0%, 62.7%)
CIE-LABlab(16.94, 14.42, -36.67)
CIE-LCHlch(16.94, 39.40, 291.46°)
OKLaboklab(28.91% -0.013 -0.1059)
OKLCHoklch(28.91% 0.107 263)
XYZxyz(2.9096, 2.2903, 11.1130)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C265F #5F450C
analogous
#0C4F5F #0C265F #1B0C5F
triadic
#0C265F #5F0C26 #265F0C
tetradic
#0C265F #5F0C4F #5F450C #0C5F1B
square
#0C265F #5F0C4F #5F450C #0C5F1B
split-complementary
#0C265F #5F1B0C #4F5F0C
monochromatic
#030B1B #051029 #0C265F #133C95 #1A51CC

Accessibility & contrast

On white

14.40
#0C265F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#0C265F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C265F
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C265F#FFFFFF#000000##FFFFFF
##0C265F1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#00343E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c265f;
/* rgb */ color: rgb(12, 38, 95);
/* oklch */ color: oklch(28.9% 0.107 263.0);
Tailwind
colors: {
  custom: {
    50: '#5c5f8d',
    500: '#0c265f',
    950: '#000000',
  },
}
SCSS
$custom: #0c265f;
$custom-light: #5c5f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c265f",
  "rgb": {
    "r": 12,
    "g": 38,
    "b": 95
  },
  "hsl": {
    "h": 221.205,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28911,
    "c": 0.1067,
    "h": 263
  },
  "luminance": 0.02291
}

Semantic roles & 50–950 ramp

primary
#0C265F
secondary
#99782D
accent
#B834F4
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0C265F

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

Preview Lab → · Contrast checker → · Palette generator →

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