#0D255E#0D255E

#0D255E is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.6% C 0.106 H 263.7°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#0D255E
RGBrgb(13, 37, 94)
HSLhsl(222, 76%, 21%)
HSVhsv(222, 86%, 37%)
CMYKcmyk(86.2%, 60.6%, 0%, 63.1%)
CIE-LABlab(16.58, 14.83, -36.59)
CIE-LCHlch(16.58, 39.48, 292.07°)
OKLaboklab(28.62% -0.0116 -0.1057)
OKLCHoklch(28.62% 0.106 263.7)
XYZxyz(2.8472, 2.2165, 10.8653)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D255E #5E460D
analogous
#0D4D5E #0D255E #1D0D5E
triadic
#0D255E #5E0D25 #255E0D
tetradic
#0D255E #5E0D4D #5E460D #0D5E1D
square
#0D255E #5E0D4D #5E460D #0D5E1D
split-complementary
#0D255E #5E1D0D #4D5E0D
monochromatic
#040B1B #061028 #0D255E #143A94 #1C4FCA

Accessibility & contrast

On white

14.55
#0D255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D255E
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D255E#FFFFFF#000000##FFFFFF
##0D255E1.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#00333D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0d255e;
/* rgb */ color: rgb(13, 37, 94);
/* oklch */ color: oklch(28.6% 0.106 263.7);
Tailwind
colors: {
  custom: {
    50: '#5c5f8c',
    500: '#0d255e',
    950: '#000000',
  },
}
SCSS
$custom: #0d255e;
$custom-light: #5c5f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#0d255e",
  "rgb": {
    "r": 13,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 222.222,
    "s": 75.701,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28624,
    "c": 0.1063,
    "h": 263.7
  },
  "luminance": 0.02217
}

Semantic roles & 50–950 ramp

primary
#0D255E
secondary
#98792F
accent
#BA36F2
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0D255E

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

Preview Lab → · Contrast checker → · Palette generator →

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