#2F2780#2F2780

#2F2780 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.144 H 279.7°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#2F2780
RGBrgb(47, 39, 128)
HSLhsl(245, 53%, 33%)
HSVhsv(245, 70%, 50%)
CMYKcmyk(63.3%, 69.5%, 0%, 49.8%)
CIE-LABlab(22.35, 31.47, -49.08)
CIE-LCHlch(22.35, 58.30, 302.66°)
OKLaboklab(34.39% 0.0243 -0.1414)
OKLCHoklch(34.39% 0.144 279.7)
XYZxyz(5.7929, 3.6135, 20.8101)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2780 #788027
analogous
#274C80 #2F2780 #5B2780
triadic
#2F2780 #802F27 #27802F
tetradic
#2F2780 #80274C #788027 #27805B
square
#2F2780 #80274C #788027 #27805B
split-complementary
#2F2780 #805B27 #4C8027
monochromatic
#0D0A22 #1E1951 #2F2780 #4035AF #6056CB

Accessibility & contrast

On white

12.19
#2F2780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F2780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2780
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2780#FFFFFF#000000##FFFFFF
##2F27801.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2780;
/* rgb */ color: rgb(47, 39, 128);
/* oklch */ color: oklch(34.4% 0.144 279.7);
Tailwind
colors: {
  custom: {
    50: '#7262a6',
    500: '#2f2780',
    950: '#000000',
  },
}
SCSS
$custom: #2f2780;
$custom-light: #7262a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2780",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 128
  },
  "hsl": {
    "h": 245.393,
    "s": 53.293,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34392,
    "c": 0.14351,
    "h": 279.7
  },
  "luminance": 0.03614
}

Semantic roles & 50–950 ramp

primary
#2F2780
secondary
#A8B053
accent
#DD4BD0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2F2780

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

Preview Lab → · Contrast checker → · Palette generator →

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