#2D1F90#2D1F90

#2D1F90 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.173 H 277.9°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#2D1F90
RGBrgb(45, 31, 144)
HSLhsl(247, 65%, 34%)
HSVhsv(247, 78%, 56%)
CMYKcmyk(68.7%, 78.5%, 0%, 43.5%)
CIE-LABlab(22.13, 41.22, -59.47)
CIE-LCHlch(22.13, 72.36, 304.72°)
OKLaboklab(34.68% 0.0238 -0.1718)
OKLCHoklch(34.68% 0.173 277.9)
XYZxyz(6.6046, 3.5509, 26.7175)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F90 #82901F
analogous
#1F4990 #2D1F90 #661F90
triadic
#2D1F90 #902D1F #1F902D
tetradic
#2D1F90 #901F49 #82901F #1F9066
square
#2D1F90 #901F49 #82901F #1F9066
split-complementary
#2D1F90 #90661F #49901F
monochromatic
#0E092B #1D145E #2D1F90 #3D2AC2 #6150D9

Accessibility & contrast

On white

12.28
#2D1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2D1F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F90
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F90#FFFFFF#000000##FFFFFF
##2D1F901.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d1f90;
/* rgb */ color: rgb(45, 31, 144);
/* oklch */ color: oklch(34.7% 0.173 277.9);
Tailwind
colors: {
  custom: {
    50: '#755db2',
    500: '#2d1f90',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f90;
$custom-light: #755db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f90",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 247.434,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34681,
    "c": 0.17345,
    "h": 277.9
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#2D1F90
secondary
#AFBC4E
accent
#E840D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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