#0C254F#0C254F

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

Color values

HEX#0C254F
RGBrgb(12, 37, 79)
HSLhsl(218, 74%, 18%)
HSVhsv(218, 85%, 31%)
CMYKcmyk(84.8%, 53.2%, 0%, 69%)
CIE-LABlab(15.31, 8.07, -28.58)
CIE-LCHlch(15.31, 29.70, 285.77°)
OKLaboklab(27.25% -0.0142 -0.0821)
OKLCHoklch(27.25% 0.083 260.2)
XYZxyz(2.2240, 1.9656, 7.6578)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C254F #4F360C
analogous
#0C464F #0C254F #150C4F
triadic
#0C254F #4F0C25 #254F0C
tetradic
#0C254F #4F0C46 #4F360C #0C4F15
square
#0C254F #4F0C46 #4F360C #0C4F15
split-complementary
#0C254F #4F150C #464F0C
monochromatic
#040C1B #040C1B #0C254F #143E84 #1C57B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C254F#FFFFFF#000000##FFFFFF
##0C254F1.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)
#0D2A51
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#002F36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0c254f;
/* rgb */ color: rgb(12, 37, 79);
/* oklch */ color: oklch(27.2% 0.083 260.2);
Tailwind
colors: {
  custom: {
    50: '#575f81',
    500: '#0c254f',
    950: '#000000',
  },
}
SCSS
$custom: #0c254f;
$custom-light: #575f81;
$custom-dark: #000000;
JSON
{
  "hex": "#0c254f",
  "rgb": {
    "r": 12,
    "g": 37,
    "b": 79
  },
  "hsl": {
    "h": 217.612,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.27248,
    "c": 0.08335,
    "h": 260.2
  },
  "luminance": 0.01966
}

Semantic roles & 50–950 ramp

primary
#0C254F
secondary
#8B672C
accent
#AB38F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #0C254F

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

Preview Lab → · Contrast checker → · Palette generator →

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