#0D2F5F#0D2F5F

#0D2F5F is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.1% C 0.094 H 258.0°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#0D2F5F
RGBrgb(13, 47, 95)
HSLhsl(215, 76%, 21%)
HSVhsv(215, 86%, 37%)
CMYKcmyk(86.3%, 50.5%, 0%, 62.7%)
CIE-LABlab(19.82, 7.85, -32.01)
CIE-LCHlch(19.82, 32.96, 283.77°)
OKLaboklab(31.12% -0.0196 -0.092)
OKLCHoklch(31.12% 0.094 258)
XYZxyz(3.2473, 2.9444, 11.2214)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D2F5F #5F3D0D
analogous
#0D585F #0D2F5F #140D5F
triadic
#0D2F5F #5F0D2F #2F5F0D
tetradic
#0D2F5F #5F0D58 #5F3D0D #0D5F14
square
#0D2F5F #5F0D58 #5F3D0D #0D5F14
split-complementary
#0D2F5F #5F140D #585F0D
monochromatic
#040D1B #061429 #0D2F5F #144A95 #1C64CB

Accessibility & contrast

On white

13.22
#0D2F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#0D2F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D2F5F
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D2F5F#FFFFFF#000000##FFFFFF
##0D2F5F1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143461
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #0d2f5f;
/* rgb */ color: rgb(13, 47, 95);
/* oklch */ color: oklch(31.1% 0.094 258.0);
Tailwind
colors: {
  custom: {
    50: '#5b668d',
    500: '#0d2f5f',
    950: '#000000',
  },
}
SCSS
$custom: #0d2f5f;
$custom-light: #5b668d;
$custom-dark: #000000;
JSON
{
  "hex": "#0d2f5f",
  "rgb": {
    "r": 13,
    "g": 47,
    "b": 95
  },
  "hsl": {
    "h": 215.122,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31116,
    "c": 0.09405,
    "h": 258
  },
  "luminance": 0.02945
}

Semantic roles & 50–950 ramp

primary
#0D2F5F
secondary
#996D2F
accent
#A435F3
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #0D2F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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