#2F2796#2F2796

#2F2796 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.172 H 276.8°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2F2796
RGBrgb(47, 39, 150)
HSLhsl(244, 59%, 37%)
HSVhsv(244, 74%, 59%)
CMYKcmyk(68.7%, 74%, 0%, 41.2%)
CIE-LABlab(24.50, 38.93, -59.26)
CIE-LCHlch(24.50, 70.90, 303.30°)
OKLaboklab(36.59% 0.0205 -0.1712)
OKLCHoklch(36.59% 0.172 276.8)
XYZxyz(7.4010, 4.2567, 29.2799)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2796 #8E9627
analogous
#275796 #2F2796 #662796
triadic
#2F2796 #962F27 #27962F
tetradic
#2F2796 #962757 #8E9627 #279666
square
#2F2796 #962757 #8E9627 #279666
split-complementary
#2F2796 #966627 #579627
monochromatic
#110E35 #201A65 #2F2796 #3E34C7 #6A61D6

Accessibility & contrast

On white

11.34
#2F2796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2796
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2796#FFFFFF#000000##FFFFFF
##2F27961.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2796;
/* rgb */ color: rgb(47, 39, 150);
/* oklch */ color: oklch(36.6% 0.172 276.8);
Tailwind
colors: {
  custom: {
    50: '#7763b6',
    500: '#2f2796',
    950: '#000000',
  },
}
SCSS
$custom: #2f2796;
$custom-light: #7763b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2796",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 244.324,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36588,
    "c": 0.17242,
    "h": 276.8
  },
  "luminance": 0.04257
}

Semantic roles & 50–950 ramp

primary
#2F2796
secondary
#B5BC5D
accent
#E246D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2796

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

Preview Lab → · Contrast checker → · Palette generator →

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