#0C254C#0C254C

#0C254C is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.0% C 0.079 H 259.2°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#0C254C
RGBrgb(12, 37, 76)
HSLhsl(217, 73%, 17%)
HSVhsv(217, 84%, 30%)
CMYKcmyk(84.2%, 51.3%, 0%, 70.2%)
CIE-LABlab(15.08, 6.73, -26.90)
CIE-LCHlch(15.08, 27.73, 284.05°)
OKLaboklab(27% -0.0148 -0.0772)
OKLCHoklch(27% 0.079 259.2)
XYZxyz(2.1172, 1.9229, 7.0956)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C254C #4C330C
analogous
#0C454C #0C254C #130C4C
triadic
#0C254C #4C0C25 #254C0C
tetradic
#0C254C #4C0C45 #4C330C #0C4C13
square
#0C254C #4C0C45 #4C330C #0C4C13
split-complementary
#0C254C #4C130C #454C0C
monochromatic
#040D1A #040D1A #0C254C #143F81 #1D58B6

Accessibility & contrast

On white

15.17
#0C254C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#0C254C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C254C
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C254C#FFFFFF#000000##FFFFFF
##0C254C1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10294D
Deuteranopia (green-blind)
#03234B
Tritanopia (blue-blind)
#002E34
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0c254c;
/* rgb */ color: rgb(12, 37, 76);
/* oklch */ color: oklch(27.0% 0.079 259.2);
Tailwind
colors: {
  custom: {
    50: '#565f7e',
    500: '#0c254c',
    950: '#000000',
  },
}
SCSS
$custom: #0c254c;
$custom-light: #565f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c254c",
  "rgb": {
    "r": 12,
    "g": 37,
    "b": 76
  },
  "hsl": {
    "h": 216.563,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26999,
    "c": 0.07859,
    "h": 259.2
  },
  "luminance": 0.01923
}

Semantic roles & 50–950 ramp

primary
#0C254C
secondary
#88642C
accent
#A838EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0C254C

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

Preview Lab → · Contrast checker → · Palette generator →

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