#0D2256#0D2256

#0D2256 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.098 H 264.2°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#0D2256
RGBrgb(13, 34, 86)
HSLhsl(223, 74%, 19%)
HSVhsv(223, 85%, 34%)
CMYKcmyk(84.9%, 60.5%, 0%, 66.3%)
CIE-LABlab(14.96, 13.59, -33.88)
CIE-LCHlch(14.96, 36.50, 291.85°)
OKLaboklab(27.18% -0.0099 -0.0978)
OKLCHoklch(27.18% 0.098 264.2)
XYZxyz(2.4171, 1.9012, 9.0419)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D2256 #56410D
analogous
#0D4756 #0D2256 #1D0D56
triadic
#0D2256 #560D22 #22560D
tetradic
#0D2256 #560D47 #56410D #0D561D
square
#0D2256 #560D47 #56410D #0D561D
split-complementary
#0D2256 #561D0D #47560D
monochromatic
#040B1B #050D21 #0D2256 #15378B #1D4CC0

Accessibility & contrast

On white

15.21
#0D2256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D2256
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D2256#FFFFFF#000000##FFFFFF
##0D22561.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0d2256;
/* rgb */ color: rgb(13, 34, 86);
/* oklch */ color: oklch(27.2% 0.098 264.2);
Tailwind
colors: {
  custom: {
    50: '#595c86',
    500: '#0d2256',
    950: '#000000',
  },
}
SCSS
$custom: #0d2256;
$custom-light: #595c86;
$custom-dark: #000000;
JSON
{
  "hex": "#0d2256",
  "rgb": {
    "r": 13,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 222.74,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27179,
    "c": 0.09826,
    "h": 264.2
  },
  "luminance": 0.01902
}

Semantic roles & 50–950 ramp

primary
#0D2256
secondary
#91742E
accent
#BB37F0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0D2256

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

Preview Lab → · Contrast checker → · Palette generator →

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