#2D1F88#2D1F88

#2D1F88 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.163 H 279.1°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#2D1F88
RGBrgb(45, 31, 136)
HSLhsl(248, 63%, 33%)
HSVhsv(248, 77%, 53%)
CMYKcmyk(66.9%, 77.2%, 0%, 46.7%)
CIE-LABlab(21.26, 38.63, -55.91)
CIE-LCHlch(21.26, 67.96, 304.64°)
OKLaboklab(33.82% 0.0259 -0.1614)
OKLCHoklch(33.82% 0.163 279.1)
XYZxyz(6.0147, 3.3149, 23.6107)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F88 #7A881F
analogous
#1F4588 #2D1F88 #611F88
triadic
#2D1F88 #882D1F #1F882D
tetradic
#2D1F88 #881F45 #7A881F #1F8861
square
#2D1F88 #881F45 #7A881F #1F8861
split-complementary
#2D1F88 #88611F #45881F
monochromatic
#0C0824 #1D1456 #2D1F88 #3D2ABA #5E4BD6

Accessibility & contrast

On white

12.63
#2D1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2D1F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F88
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F88#FFFFFF#000000##FFFFFF
##2D1F881.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1f88;
/* rgb */ color: rgb(45, 31, 136);
/* oklch */ color: oklch(33.8% 0.163 279.1);
Tailwind
colors: {
  custom: {
    50: '#735dac',
    500: '#2d1f88',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f88;
$custom-light: #735dac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f88",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 248,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33816,
    "c": 0.16348,
    "h": 279.1
  },
  "luminance": 0.03315
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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