#2F2DA7#2F2DA7

#2F2DA7 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.188 H 274.2°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#2F2DA7
RGBrgb(47, 45, 167)
HSLhsl(241, 58%, 42%)
HSVhsv(241, 73%, 65%)
CMYKcmyk(71.9%, 73.1%, 0%, 34.5%)
CIE-LABlab(27.49, 41.14, -64.69)
CIE-LCHlch(27.49, 76.67, 302.45°)
OKLaboklab(39.24% 0.0138 -0.1871)
OKLCHoklch(39.24% 0.188 274.2)
XYZxyz(9.0834, 5.2702, 37.0903)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2DA7 #A5A72D
analogous
#2D68A7 #2F2DA7 #6C2DA7
triadic
#2F2DA7 #A72F2D #2DA72F
tetradic
#2F2DA7 #A72D68 #A5A72D #2DA76C
square
#2F2DA7 #A72D68 #A5A72D #2DA76C
split-complementary
#2F2DA7 #A76C2D #68A72D
monochromatic
#141347 #212077 #2F2DA7 #4744CD #7675DA

Accessibility & contrast

On white

10.22
#2F2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F2DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2DA7
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2DA7#FFFFFF#000000##FFFFFF
##2F2DA71.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f2da7;
/* rgb */ color: rgb(47, 45, 167);
/* oklch */ color: oklch(39.2% 0.188 274.2);
Tailwind
colors: {
  custom: {
    50: '#7a67c2',
    500: '#2f2da7',
    950: '#000000',
  },
}
SCSS
$custom: #2f2da7;
$custom-light: #7a67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2da7",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 240.984,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39238,
    "c": 0.18758,
    "h": 274.2
  },
  "luminance": 0.05271
}

Semantic roles & 50–950 ramp

primary
#2F2DA7
secondary
#C0C16E
accent
#E147DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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