#2D1E7B#2D1E7B

#2D1E7B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.148 H 281.6°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2D1E7B
RGBrgb(45, 30, 123)
HSLhsl(250, 61%, 30%)
HSVhsv(250, 76%, 48%)
CMYKcmyk(63.4%, 75.6%, 0%, 51.8%)
CIE-LABlab(19.70, 34.94, -50.26)
CIE-LCHlch(19.70, 61.21, 304.81°)
OKLaboklab(32.31% 0.0297 -0.1449)
OKLCHoklch(32.31% 0.148 281.6)
XYZxyz(5.1205, 2.9161, 19.0281)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E7B #6C7B1E
analogous
#1E3E7B #2D1E7B #5B1E7B
triadic
#2D1E7B #7B2D1E #1E7B2D
tetradic
#2D1E7B #7B1E3E #6C7B1E #1E7B5B
square
#2D1E7B #7B1E3E #6C7B1E #1E7B5B
split-complementary
#2D1E7B #7B5B1E #3E7B1E
monochromatic
#090619 #1B124A #2D1E7B #3F2AAC #5942D1

Accessibility & contrast

On white

13.26
#2D1E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2D1E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1E7B
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E7B#FFFFFF#000000##FFFFFF
##2D1E7B1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1e7b;
/* rgb */ color: rgb(45, 30, 123);
/* oklch */ color: oklch(32.3% 0.148 281.6);
Tailwind
colors: {
  custom: {
    50: '#715ca2',
    500: '#2d1e7b',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e7b;
$custom-light: #715ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e7b",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 249.677,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.32306,
    "c": 0.14792,
    "h": 281.6
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#2D1E7B
secondary
#9EAE46
accent
#E444CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D1E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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