#2F2382#2F2382

#2F2382 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.151 H 280.4°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#2F2382
RGBrgb(47, 35, 130)
HSLhsl(248, 58%, 32%)
HSVhsv(248, 73%, 51%)
CMYKcmyk(63.8%, 73.1%, 0%, 49%)
CIE-LABlab(21.64, 34.60, -51.50)
CIE-LCHlch(21.64, 62.05, 303.90°)
OKLaboklab(33.94% 0.0273 -0.1485)
OKLCHoklch(33.94% 0.151 280.4)
XYZxyz(5.8013, 3.4177, 21.4687)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2382 #768223
analogous
#234682 #2F2382 #5F2382
triadic
#2F2382 #822F23 #23822F
tetradic
#2F2382 #822346 #768223 #23825F
square
#2F2382 #822346 #768223 #23825F
split-complementary
#2F2382 #825F23 #468223
monochromatic
#0C0922 #1E1652 #2F2382 #4030B2 #6050D0

Accessibility & contrast

On white

12.47
#2F2382 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F2382 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2382
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2382#FFFFFF#000000##FFFFFF
##2F23821.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2382;
/* rgb */ color: rgb(47, 35, 130);
/* oklch */ color: oklch(33.9% 0.151 280.4);
Tailwind
colors: {
  custom: {
    50: '#735fa7',
    500: '#2f2382',
    950: '#000000',
  },
}
SCSS
$custom: #2f2382;
$custom-light: #735fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2382",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 130
  },
  "hsl": {
    "h": 247.579,
    "s": 57.576,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33944,
    "c": 0.151,
    "h": 280.4
  },
  "luminance": 0.03418
}

Semantic roles & 50–950 ramp

primary
#2F2382
secondary
#A7B34D
accent
#E147CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2382

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

Preview Lab → · Contrast checker → · Palette generator →

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