#2D1E7C#2D1E7C

#2D1E7C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.149 H 281.4°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2D1E7C
RGBrgb(45, 30, 124)
HSLhsl(250, 61%, 30%)
HSVhsv(250, 76%, 49%)
CMYKcmyk(63.7%, 75.8%, 0%, 51.4%)
CIE-LABlab(19.81, 35.27, -50.73)
CIE-LCHlch(19.81, 61.78, 304.81°)
OKLaboklab(32.41% 0.0295 -0.1463)
OKLCHoklch(32.41% 0.149 281.4)
XYZxyz(5.1834, 2.9413, 19.3595)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E7C #6D7C1E
analogous
#1E3E7C #2D1E7C #5C1E7C
triadic
#2D1E7C #7C2D1E #1E7C2D
tetradic
#2D1E7C #7C1E3E #6D7C1E #1E7C5C
square
#2D1E7C #7C1E3E #6D7C1E #1E7C5C
split-complementary
#2D1E7C #7C5C1E #3E7C1E
monochromatic
#090619 #1B124B #2D1E7C #3F2AAD #5A43D1

Accessibility & contrast

On white

13.22
#2D1E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2D1E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1E7C
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E7C#FFFFFF#000000##FFFFFF
##2D1E7C1.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)
#00337F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1e7c;
/* rgb */ color: rgb(45, 30, 124);
/* oklch */ color: oklch(32.4% 0.149 281.4);
Tailwind
colors: {
  custom: {
    50: '#715ca3',
    500: '#2d1e7c',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e7c;
$custom-light: #715ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e7c",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 249.574,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3241,
    "c": 0.14922,
    "h": 281.4
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#2D1E7C
secondary
#9FAF46
accent
#E444CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D1E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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