#0D254C#0D254C

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

Color values

HEX#0D254C
RGBrgb(13, 37, 76)
HSLhsl(217, 71%, 17%)
HSVhsv(217, 83%, 30%)
CMYKcmyk(82.9%, 51.3%, 0%, 70.2%)
CIE-LABlab(15.12, 6.88, -26.84)
CIE-LCHlch(15.12, 27.70, 284.37°)
OKLaboklab(27.04% -0.014 -0.077)
OKLCHoklch(27.04% 0.078 259.7)
XYZxyz(2.1316, 1.9303, 7.0963)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D254C #4C340D
analogous
#0D454C #0D254C #150D4C
triadic
#0D254C #4C0D25 #254C0D
tetradic
#0D254C #4C0D45 #4C340D #0D4C15
square
#0D254C #4C0D45 #4C340D #0D4C15
split-complementary
#0D254C #4C150D #454C0D
monochromatic
#040D1A #040D1A #0D254C #163E80 #1F58B5

Accessibility & contrast

On white

15.15
#0D254C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D254C
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D254C#FFFFFF#000000##FFFFFF
##0D254C1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.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: #0d254c;
/* rgb */ color: rgb(13, 37, 76);
/* oklch */ color: oklch(27.0% 0.078 259.7);
Tailwind
colors: {
  custom: {
    50: '#565f7e',
    500: '#0d254c',
    950: '#000000',
  },
}
SCSS
$custom: #0d254c;
$custom-light: #565f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0d254c",
  "rgb": {
    "r": 13,
    "g": 37,
    "b": 76
  },
  "hsl": {
    "h": 217.143,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27041,
    "c": 0.07824,
    "h": 259.7
  },
  "luminance": 0.01931
}

Semantic roles & 50–950 ramp

primary
#0D254C
secondary
#87652E
accent
#A93AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0D254C

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

Preview Lab → · Contrast checker → · Palette generator →

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