#0D1F4C#0D1F4C

#0D1F4C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.5% C 0.087 H 264.5°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#0D1F4C
RGBrgb(13, 31, 76)
HSLhsl(223, 71%, 17%)
HSVhsv(223, 83%, 30%)
CMYKcmyk(82.9%, 59.2%, 0%, 70.2%)
CIE-LABlab(13.15, 11.46, -30.01)
CIE-LCHlch(13.15, 32.12, 290.90°)
OKLaboklab(25.54% -0.0083 -0.0864)
OKLCHoklch(25.54% 0.087 264.5)
XYZxyz(1.9600, 1.5871, 7.0391)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D1F4C #4C3A0D
analogous
#0D3F4C #0D1F4C #1A0D4C
triadic
#0D1F4C #4C0D1F #1F4C0D
tetradic
#0D1F4C #4C0D3F #4C3A0D #0D4C1A
square
#0D1F4C #4C0D3F #4C3A0D #0D4C1A
split-complementary
#0D1F4C #4C1A0D #3F4C0D
monochromatic
#040B1A #040B1A #0D1F4C #163480 #1F4AB5

Accessibility & contrast

On white

15.94
#0D1F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0D1F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D1F4C
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D1F4C#FFFFFF#000000##FFFFFF
##0D1F4C1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01254E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0d1f4c;
/* rgb */ color: rgb(13, 31, 76);
/* oklch */ color: oklch(25.5% 0.087 264.5);
Tailwind
colors: {
  custom: {
    50: '#575a7e',
    500: '#0d1f4c',
    950: '#000000',
  },
}
SCSS
$custom: #0d1f4c;
$custom-light: #575a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0d1f4c",
  "rgb": {
    "r": 13,
    "g": 31,
    "b": 76
  },
  "hsl": {
    "h": 222.857,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2554,
    "c": 0.08683,
    "h": 264.5
  },
  "luminance": 0.01587
}

Semantic roles & 50–950 ramp

primary
#0D1F4C
secondary
#876E2E
accent
#BA3AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0D1F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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