#2F2995#2F2995

#2F2995 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.169 H 276.6°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2F2995
RGBrgb(47, 41, 149)
HSLhsl(243, 57%, 37%)
HSVhsv(243, 72%, 58%)
CMYKcmyk(68.5%, 72.5%, 0%, 41.6%)
CIE-LABlab(24.83, 37.41, -58.11)
CIE-LCHlch(24.83, 69.12, 302.77°)
OKLaboklab(36.79% 0.0194 -0.1679)
OKLCHoklch(36.79% 0.169 276.6)
XYZxyz(7.3883, 4.3595, 28.8801)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2995 #8F9529
analogous
#295995 #2F2995 #652995
triadic
#2F2995 #952F29 #29952F
tetradic
#2F2995 #952959 #8F9529 #299565
square
#2F2995 #952959 #8F9529 #299565
split-complementary
#2F2995 #956529 #599529
monochromatic
#110F35 #201C65 #2F2995 #3E36C5 #6A64D4

Accessibility & contrast

On white

11.22
#2F2995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F2995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2995
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2995#FFFFFF#000000##FFFFFF
##2F29951.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2995;
/* rgb */ color: rgb(47, 41, 149);
/* oklch */ color: oklch(36.8% 0.169 276.6);
Tailwind
colors: {
  custom: {
    50: '#7664b5',
    500: '#2f2995',
    950: '#000000',
  },
}
SCSS
$custom: #2f2995;
$custom-light: #7664b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2995",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 243.333,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36788,
    "c": 0.16897,
    "h": 276.6
  },
  "luminance": 0.0436
}

Semantic roles & 50–950 ramp

primary
#2F2995
secondary
#B5BA60
accent
#E048D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2995

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

Preview Lab → · Contrast checker → · Palette generator →

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