#2D1F98#2D1F98

#2D1F98 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.183 H 276.8°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2D1F98
RGBrgb(45, 31, 152)
HSLhsl(247, 66%, 36%)
HSVhsv(247, 80%, 60%)
CMYKcmyk(70.4%, 79.6%, 0%, 40.4%)
CIE-LABlab(23.01, 43.77, -62.95)
CIE-LCHlch(23.01, 76.67, 304.81°)
OKLaboklab(35.56% 0.0217 -0.1819)
OKLCHoklch(35.56% 0.183 276.8)
XYZxyz(7.2378, 3.8042, 30.0525)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F98 #8A981F
analogous
#1F4D98 #2D1F98 #691F98
triadic
#2D1F98 #982D1F #1F982D
tetradic
#2D1F98 #981F4D #8A981F #1F9869
square
#2D1F98 #981F4D #8A981F #1F9869
split-complementary
#2D1F98 #98691F #4D981F
monochromatic
#0F0A32 #1E1565 #2D1F98 #3C29CB #6555DC

Accessibility & contrast

On white

11.93
#2D1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2D1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F98
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F98#FFFFFF#000000##FFFFFF
##2D1F981.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d1f98;
/* rgb */ color: rgb(45, 31, 152);
/* oklch */ color: oklch(35.6% 0.183 276.8);
Tailwind
colors: {
  custom: {
    50: '#775eb8',
    500: '#2d1f98',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f98;
$custom-light: #775eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f98",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 246.942,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35563,
    "c": 0.18323,
    "h": 276.8
  },
  "luminance": 0.03805
}

Semantic roles & 50–950 ramp

primary
#2D1F98
secondary
#B3C053
accent
#E93FD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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