#2D2FA1#2D2FA1

#2D2FA1 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.178 H 273.6°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#2D2FA1
RGBrgb(45, 47, 161)
HSLhsl(239, 56%, 40%)
HSVhsv(239, 72%, 63%)
CMYKcmyk(72%, 70.8%, 0%, 36.9%)
CIE-LABlab(27.20, 37.67, -61.56)
CIE-LCHlch(27.20, 72.17, 301.47°)
OKLaboklab(38.81% 0.0111 -0.178)
OKLCHoklch(38.81% 0.178 273.6)
XYZxyz(8.5296, 5.1633, 34.2584)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2FA1 #A19F2D
analogous
#2D69A1 #2D2FA1 #652DA1
triadic
#2D2FA1 #A12D2F #2FA12D
tetradic
#2D2FA1 #A12D69 #A19F2D #2DA165
square
#2D2FA1 #A12D69 #A19F2D #2DA165
split-complementary
#2D2FA1 #A1652D #69A12D
monochromatic
#121341 #202171 #2D2FA1 #4144CA #7173D7

Accessibility & contrast

On white

10.33
#2D2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2D2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2FA1
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2FA1#FFFFFF#000000##FFFFFF
##2D2FA11.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d2fa1;
/* rgb */ color: rgb(45, 47, 161);
/* oklch */ color: oklch(38.8% 0.178 273.6);
Tailwind
colors: {
  custom: {
    50: '#7868be',
    500: '#2d2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #2d2fa1;
$custom-light: #7868be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2fa1",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 238.966,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38811,
    "c": 0.17833,
    "h": 273.6
  },
  "luminance": 0.05164
}

Semantic roles & 50–950 ramp

primary
#2D2FA1
secondary
#BFBD6B
accent
#DD48E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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