#2D1E8C#2D1E8C

#2D1E8C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.169 H 278.6°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#2D1E8C
RGBrgb(45, 30, 140)
HSLhsl(248, 65%, 33%)
HSVhsv(248, 79%, 55%)
CMYKcmyk(67.9%, 78.6%, 0%, 45.1%)
CIE-LABlab(21.50, 40.47, -58.01)
CIE-LCHlch(21.50, 70.73, 304.90°)
OKLaboklab(34.11% 0.0254 -0.1675)
OKLCHoklch(34.11% 0.169 278.6)
XYZxyz(6.2786, 3.3794, 25.1273)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E8C #7D8C1E
analogous
#1E468C #2D1E8C #641E8C
triadic
#2D1E8C #8C2D1E #1E8C2D
tetradic
#2D1E8C #8C1E46 #7D8C1E #1E8C64
square
#2D1E8C #8C1E46 #7D8C1E #1E8C64
split-complementary
#2D1E8C #8C641E #468C1E
monochromatic
#0D0827 #1D135A #2D1E8C #3D29BE #5F4CD9

Accessibility & contrast

On white

12.53
#2D1E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2D1E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1E8C
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E8C#FFFFFF#000000##FFFFFF
##2D1E8C1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d1e8c;
/* rgb */ color: rgb(45, 30, 140);
/* oklch */ color: oklch(34.1% 0.169 278.6);
Tailwind
colors: {
  custom: {
    50: '#745daf',
    500: '#2d1e8c',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e8c;
$custom-light: #745daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e8c",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 248.182,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34113,
    "c": 0.16947,
    "h": 278.6
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

primary
#2D1E8C
secondary
#ACBB4B
accent
#E840D1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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