#2D1F8E#2D1F8E

#2D1F8E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.171 H 278.2°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#2D1F8E
RGBrgb(45, 31, 142)
HSLhsl(248, 64%, 34%)
HSVhsv(248, 78%, 56%)
CMYKcmyk(68.3%, 78.2%, 0%, 44.3%)
CIE-LABlab(21.91, 40.57, -58.59)
CIE-LCHlch(21.91, 71.27, 304.70°)
OKLaboklab(34.46% 0.0243 -0.1692)
OKLCHoklch(34.46% 0.171 278.2)
XYZxyz(6.4531, 3.4903, 25.9196)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F8E #808E1F
analogous
#1F498E #2D1F8E #651F8E
triadic
#2D1F8E #8E2D1F #1F8E2D
tetradic
#2D1F8E #8E1F49 #808E1F #1F8E65
square
#2D1F8E #8E1F49 #808E1F #1F8E65
split-complementary
#2D1F8E #8E651F #498E1F
monochromatic
#0D092A #1D145C #2D1F8E #3D2AC0 #604FD9

Accessibility & contrast

On white

12.37
#2D1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2D1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F8E
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F8E#FFFFFF#000000##FFFFFF
##2D1F8E1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d1f8e;
/* rgb */ color: rgb(45, 31, 142);
/* oklch */ color: oklch(34.5% 0.171 278.2);
Tailwind
colors: {
  custom: {
    50: '#755db0',
    500: '#2d1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f8e;
$custom-light: #755db0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f8e",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 247.568,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34463,
    "c": 0.17098,
    "h": 278.2
  },
  "luminance": 0.03491
}

Semantic roles & 50–950 ramp

primary
#2D1F8E
secondary
#AEBB4D
accent
#E741D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2D1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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