#2F2785#2F2785

#2F2785 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.150 H 279.0°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#2F2785
RGBrgb(47, 39, 133)
HSLhsl(245, 55%, 34%)
HSVhsv(245, 71%, 52%)
CMYKcmyk(64.7%, 70.7%, 0%, 47.8%)
CIE-LABlab(22.82, 33.18, -51.46)
CIE-LCHlch(22.82, 61.23, 302.81°)
OKLaboklab(34.88% 0.0235 -0.1484)
OKLCHoklch(34.88% 0.15 279)
XYZxyz(6.1301, 3.7484, 22.5862)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2785 #7D8527
analogous
#274E85 #2F2785 #5E2785
triadic
#2F2785 #852F27 #27852F
tetradic
#2F2785 #85274E #7D8527 #27855E
square
#2F2785 #85274E #7D8527 #27855E
split-complementary
#2F2785 #855E27 #4E8527
monochromatic
#0E0B26 #1E1956 #2F2785 #4035B4 #6258CE

Accessibility & contrast

On white

12.00
#2F2785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F2785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2785
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2785#FFFFFF#000000##FFFFFF
##2F27851.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2785;
/* rgb */ color: rgb(47, 39, 133);
/* oklch */ color: oklch(34.9% 0.150 279.0);
Tailwind
colors: {
  custom: {
    50: '#7362a9',
    500: '#2f2785',
    950: '#000000',
  },
}
SCSS
$custom: #2f2785;
$custom-light: #7362a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2785",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 245.106,
    "s": 54.651,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34876,
    "c": 0.15025,
    "h": 279
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#2F2785
secondary
#ABB355
accent
#DE4AD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2785

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

Preview Lab → · Contrast checker → · Palette generator →

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