#2D2FB1#2D2FB1

#2D2FB1 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.199 H 272.5°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#2D2FB1
RGBrgb(45, 47, 177)
HSLhsl(239, 59%, 44%)
HSVhsv(239, 75%, 69%)
CMYKcmyk(74.6%, 73.4%, 0%, 30.6%)
CIE-LABlab(28.81, 43.15, -68.53)
CIE-LCHlch(28.81, 80.98, 302.20°)
OKLaboklab(40.45% 0.0086 -0.1983)
OKLCHoklch(40.45% 0.199 272.5)
XYZxyz(10.0318, 5.7642, 42.1704)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2FB1 #B1AF2D
analogous
#2D71B1 #2D2FB1 #6D2DB1
triadic
#2D2FB1 #B12D2F #2FB12D
tetradic
#2D2FB1 #B12D71 #B1AF2D #2DB16D
square
#2D2FB1 #B12D71 #B1AF2D #2DB16D
split-complementary
#2D2FB1 #B16D2D #71B12D
monochromatic
#14154F #212280 #2D2FB1 #4A4CD1 #7B7CDD

Accessibility & contrast

On white

9.75
#2D2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2D2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2FB1
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2FB1#FFFFFF#000000##FFFFFF
##2D2FB11.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d2fb1;
/* rgb */ color: rgb(45, 47, 177);
/* oklch */ color: oklch(40.5% 0.199 272.5);
Tailwind
colors: {
  custom: {
    50: '#7b69ca',
    500: '#2d2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #2d2fb1;
$custom-light: #7b69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2fb1",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 239.091,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40451,
    "c": 0.1985,
    "h": 272.5
  },
  "luminance": 0.05765
}

Semantic roles & 50–950 ramp

primary
#2D2FB1
secondary
#C6C474
accent
#E045E3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2D2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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