#2D317F#2D317F

#2D317F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.129 H 275.5°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2D317F
RGBrgb(45, 49, 127)
HSLhsl(237, 48%, 34%)
HSVhsv(237, 65%, 50%)
CMYKcmyk(64.6%, 61.4%, 0%, 50.2%)
CIE-LABlab(24.60, 24.21, -44.79)
CIE-LCHlch(24.60, 50.92, 298.39°)
OKLaboklab(35.97% 0.0125 -0.1288)
OKLCHoklch(35.97% 0.129 275.5)
XYZxyz(6.0100, 4.2863, 20.5852)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D317F #7F7B2D
analogous
#2D5A7F #2D317F #522D7F
triadic
#2D317F #7F2D31 #317F2D
tetradic
#2D317F #7F2D5A #7F7B2D #2D7F52
square
#2D317F #7F2D5A #7F7B2D #2D7F52
split-complementary
#2D317F #7F522D #5A7F2D
monochromatic
#0D0E25 #1D2052 #2D317F #3D42AC #6065C7

Accessibility & contrast

On white

11.31
#2D317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2D317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D317F
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D317F#FFFFFF#000000##FFFFFF
##2D317F1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d317f;
/* rgb */ color: rgb(45, 49, 127);
/* oklch */ color: oklch(36.0% 0.129 275.5);
Tailwind
colors: {
  custom: {
    50: '#7069a5',
    500: '#2d317f',
    950: '#000000',
  },
}
SCSS
$custom: #2d317f;
$custom-light: #7069a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d317f",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 237.073,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35967,
    "c": 0.12945,
    "h": 275.5
  },
  "luminance": 0.04287
}

Semantic roles & 50–950 ramp

primary
#2D317F
secondary
#ADA95B
accent
#D151D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D317F

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

Preview Lab → · Contrast checker → · Palette generator →

#2D317F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva