#2F2380#2F2380

#2F2380 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.148 H 280.7°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#2F2380
RGBrgb(47, 35, 128)
HSLhsl(248, 57%, 32%)
HSVhsv(248, 73%, 50%)
CMYKcmyk(63.3%, 72.7%, 0%, 49.8%)
CIE-LABlab(21.45, 33.93, -50.56)
CIE-LCHlch(21.45, 60.89, 303.87°)
OKLaboklab(33.74% 0.0277 -0.1458)
OKLCHoklch(33.74% 0.148 280.7)
XYZxyz(5.6684, 3.3645, 20.7686)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2380 #748023
analogous
#234680 #2F2380 #5E2380
triadic
#2F2380 #802F23 #23802F
tetradic
#2F2380 #802346 #748023 #23805E
square
#2F2380 #802346 #748023 #23805E
split-complementary
#2F2380 #805E23 #468023
monochromatic
#0C0920 #1D1650 #2F2380 #4130B0 #5F4FCF

Accessibility & contrast

On white

12.55
#2F2380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F2380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2380
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2380#FFFFFF#000000##FFFFFF
##2F23801.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2380;
/* rgb */ color: rgb(47, 35, 128);
/* oklch */ color: oklch(33.7% 0.148 280.7);
Tailwind
colors: {
  custom: {
    50: '#725fa6',
    500: '#2f2380',
    950: '#000000',
  },
}
SCSS
$custom: #2f2380;
$custom-light: #725fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2380",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 128
  },
  "hsl": {
    "h": 247.742,
    "s": 57.055,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33744,
    "c": 0.14836,
    "h": 280.7
  },
  "luminance": 0.03365
}

Semantic roles & 50–950 ramp

primary
#2F2380
secondary
#A5B24D
accent
#E047CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2F2380

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

Preview Lab → · Contrast checker → · Palette generator →

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