#2D319F#2D319F

#2D319F is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.173 H 273.3°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2D319F
RGBrgb(45, 49, 159)
HSLhsl(238, 56%, 40%)
HSVhsv(238, 72%, 62%)
CMYKcmyk(71.7%, 69.2%, 0%, 37.6%)
CIE-LABlab(27.45, 35.73, -59.91)
CIE-LCHlch(27.45, 69.76, 300.81°)
OKLaboklab(38.94% 0.0101 -0.1732)
OKLCHoklch(38.94% 0.173 273.3)
XYZxyz(8.4364, 5.2569, 33.3642)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D319F #9F9B2D
analogous
#2D6A9F #2D319F #622D9F
triadic
#2D319F #9F2D31 #319F2D
tetradic
#2D319F #9F2D6A #9F9B2D #2D9F62
square
#2D319F #9F2D6A #9F9B2D #2D9F62
split-complementary
#2D319F #9F622D #6A9F2D
monochromatic
#121440 #20226F #2D319F #4045C9 #7073D6

Accessibility & contrast

On white

10.24
#2D319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2D319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D319F
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D319F#FFFFFF#000000##FFFFFF
##2D319F1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d319f;
/* rgb */ color: rgb(45, 49, 159);
/* oklch */ color: oklch(38.9% 0.173 273.3);
Tailwind
colors: {
  custom: {
    50: '#776abc',
    500: '#2d319f',
    950: '#000000',
  },
}
SCSS
$custom: #2d319f;
$custom-light: #776abc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d319f",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 237.895,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.38939,
    "c": 0.17347,
    "h": 273.3
  },
  "luminance": 0.05258
}

Semantic roles & 50–950 ramp

primary
#2D319F
secondary
#BEBB6A
accent
#DA49DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D319F

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

Preview Lab → · Contrast checker → · Palette generator →

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