#2F2795#2F2795

#2F2795 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.171 H 276.9°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#2F2795
RGBrgb(47, 39, 149)
HSLhsl(244, 59%, 37%)
HSVhsv(244, 74%, 58%)
CMYKcmyk(68.5%, 73.8%, 0%, 41.6%)
CIE-LABlab(24.40, 38.60, -58.81)
CIE-LCHlch(24.40, 70.35, 303.28°)
OKLaboklab(36.49% 0.0207 -0.1699)
OKLCHoklch(36.49% 0.171 276.9)
XYZxyz(7.3209, 4.2247, 28.8576)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2795 #8D9527
analogous
#275695 #2F2795 #662795
triadic
#2F2795 #952F27 #27952F
tetradic
#2F2795 #952756 #8D9527 #279566
square
#2F2795 #952756 #8D9527 #279566
split-complementary
#2F2795 #956627 #569527
monochromatic
#100E34 #201A64 #2F2795 #3E34C6 #6961D6

Accessibility & contrast

On white

11.38
#2F2795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F2795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2795
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2795#FFFFFF#000000##FFFFFF
##2F27951.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2795;
/* rgb */ color: rgb(47, 39, 149);
/* oklch */ color: oklch(36.5% 0.171 276.9);
Tailwind
colors: {
  custom: {
    50: '#7663b5',
    500: '#2f2795',
    950: '#000000',
  },
}
SCSS
$custom: #2f2795;
$custom-light: #7663b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2795",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 244.364,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36485,
    "c": 0.17114,
    "h": 276.9
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#2F2795
secondary
#B4BB5D
accent
#E246D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2795

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

Preview Lab → · Contrast checker → · Palette generator →

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