#2D1F89#2D1F89

#2D1F89 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.165 H 278.9°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#2D1F89
RGBrgb(45, 31, 137)
HSLhsl(248, 63%, 33%)
HSVhsv(248, 77%, 54%)
CMYKcmyk(67.2%, 77.4%, 0%, 46.3%)
CIE-LABlab(21.37, 38.96, -56.36)
CIE-LCHlch(21.37, 68.51, 304.65°)
OKLaboklab(33.92% 0.0256 -0.1627)
OKLCHoklch(33.92% 0.165 278.9)
XYZxyz(6.0861, 3.3435, 23.9867)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F89 #7B891F
analogous
#1F4689 #2D1F89 #621F89
triadic
#2D1F89 #892D1F #1F892D
tetradic
#2D1F89 #891F46 #7B891F #1F8962
square
#2D1F89 #891F46 #7B891F #1F8962
split-complementary
#2D1F89 #89621F #46891F
monochromatic
#0C0825 #1D1457 #2D1F89 #3D2ABB #5E4CD6

Accessibility & contrast

On white

12.58
#2D1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F89
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F89#FFFFFF#000000##FFFFFF
##2D1F891.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1f89;
/* rgb */ color: rgb(45, 31, 137);
/* oklch */ color: oklch(33.9% 0.165 278.9);
Tailwind
colors: {
  custom: {
    50: '#745dad',
    500: '#2d1f89',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f89;
$custom-light: #745dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f89",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 247.925,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33923,
    "c": 0.16474,
    "h": 278.9
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#2D1F89
secondary
#ABB94B
accent
#E642D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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