#2F2DB4#2F2DB4

#2F2DB4 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.6% C 0.204 H 273.2°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2F2DB4
RGBrgb(47, 45, 180)
HSLhsl(241, 60%, 44%)
HSVhsv(241, 75%, 71%)
CMYKcmyk(73.9%, 75%, 0%, 29.4%)
CIE-LABlab(28.84, 45.47, -70.26)
CIE-LCHlch(28.84, 83.69, 302.91°)
OKLaboklab(40.6% 0.0114 -0.2033)
OKLCHoklch(40.6% 0.204 273.2)
XYZxyz(10.3461, 5.7753, 43.7407)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2DB4 #B2B42D
analogous
#2D6FB4 #2F2DB4 #732DB4
triadic
#2F2DB4 #B42F2D #2DB42F
tetradic
#2F2DB4 #B42D6F #B2B42D #2DB473
square
#2F2DB4 #B42D6F #B2B42D #2DB473
split-complementary
#2F2DB4 #B4732D #6FB42D
monochromatic
#151552 #222183 #2F2DB4 #4E4CD2 #7E7DDE

Accessibility & contrast

On white

9.74
#2F2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F2DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2DB4
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2DB4#FFFFFF#000000##FFFFFF
##2F2DB41.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#003DB2
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f2db4;
/* rgb */ color: rgb(47, 45, 180);
/* oklch */ color: oklch(40.6% 0.204 273.2);
Tailwind
colors: {
  custom: {
    50: '#7d68cc',
    500: '#2f2db4',
    950: '#000000',
  },
}
SCSS
$custom: #2f2db4;
$custom-light: #7d68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2db4",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 240.889,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40597,
    "c": 0.20363,
    "h": 273.2
  },
  "luminance": 0.05776
}

Semantic roles & 50–950 ramp

primary
#2F2DB4
secondary
#C6C776
accent
#E345E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2F2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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