#0C265A#0C265A

#0C265A is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.5% C 0.099 H 262.2°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#0C265A
RGBrgb(12, 38, 90)
HSLhsl(220, 76%, 20%)
HSVhsv(220, 87%, 35%)
CMYKcmyk(86.7%, 57.8%, 0%, 64.7%)
CIE-LABlab(16.52, 12.21, -34.04)
CIE-LCHlch(16.52, 36.16, 289.74°)
OKLaboklab(28.45% -0.0135 -0.0982)
OKLCHoklch(28.45% 0.099 262.2)
XYZxyz(2.6895, 2.2023, 9.9542)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C265A #5A400C
analogous
#0C4D5A #0C265A #190C5A
triadic
#0C265A #5A0C26 #265A0C
tetradic
#0C265A #5A0C4D #5A400C #0C5A19
square
#0C265A #5A0C4D #5A400C #0C5A19
split-complementary
#0C265A #5A190C #4D5A0C
monochromatic
#040B1B #050F24 #0C265A #133D90 #1A54C6

Accessibility & contrast

On white

14.58
#0C265A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#0C265A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C265A
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C265A#FFFFFF#000000##FFFFFF
##0C265A1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#00333C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0c265a;
/* rgb */ color: rgb(12, 38, 90);
/* oklch */ color: oklch(28.5% 0.099 262.2);
Tailwind
colors: {
  custom: {
    50: '#5a5f89',
    500: '#0c265a',
    950: '#000000',
  },
}
SCSS
$custom: #0c265a;
$custom-light: #5a5f89;
$custom-dark: #000000;
JSON
{
  "hex": "#0c265a",
  "rgb": {
    "r": 12,
    "g": 38,
    "b": 90
  },
  "hsl": {
    "h": 220,
    "s": 76.471,
    "l": 20
  },
  "oklch": {
    "l": 0.28452,
    "c": 0.09909,
    "h": 262.2
  },
  "luminance": 0.02203
}

Semantic roles & 50–950 ramp

primary
#0C265A
secondary
#95722D
accent
#B435F3
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C265A

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

Preview Lab → · Contrast checker → · Palette generator →

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