#2D318D#2D318D

#2D318D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.149 H 274.6°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2D318D
RGBrgb(45, 49, 141)
HSLhsl(238, 52%, 36%)
HSVhsv(238, 68%, 55%)
CMYKcmyk(68.1%, 65.2%, 0%, 44.7%)
CIE-LABlab(25.79, 29.30, -51.59)
CIE-LCHlch(25.79, 59.33, 299.60°)
OKLaboklab(37.22% 0.0119 -0.1488)
OKLCHoklch(37.22% 0.149 274.6)
XYZxyz(6.9866, 4.6770, 25.7287)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D318D #8D892D
analogous
#2D618D #2D318D #592D8D
triadic
#2D318D #8D2D31 #318D2D
tetradic
#2D318D #8D2D61 #8D892D #2D8D59
square
#2D318D #8D2D61 #8D892D #2D8D59
split-complementary
#2D318D #8D592D #618D2D
monochromatic
#0F1130 #1E215F #2D318D #3C41BB #666BCE

Accessibility & contrast

On white

10.85
#2D318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2D318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D318D
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D318D#FFFFFF#000000##FFFFFF
##2D318D1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d318d;
/* rgb */ color: rgb(45, 49, 141);
/* oklch */ color: oklch(37.2% 0.149 274.6);
Tailwind
colors: {
  custom: {
    50: '#7369af',
    500: '#2d318d',
    950: '#000000',
  },
}
SCSS
$custom: #2d318d;
$custom-light: #7369af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d318d",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 237.5,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37221,
    "c": 0.14927,
    "h": 274.6
  },
  "luminance": 0.04678
}

Semantic roles & 50–950 ramp

primary
#2D318D
secondary
#B5B161
accent
#D54DDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D318D

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

Preview Lab → · Contrast checker → · Palette generator →

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