#2F2195#2F2195

#2F2195 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.177 H 277.9°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2F2195
RGBrgb(47, 33, 149)
HSLhsl(247, 64%, 36%)
HSVhsv(247, 78%, 58%)
CMYKcmyk(68.5%, 77.9%, 0%, 41.6%)
CIE-LABlab(23.21, 41.96, -60.78)
CIE-LCHlch(23.21, 73.86, 304.62°)
OKLaboklab(35.64% 0.0243 -0.1756)
OKLCHoklch(35.64% 0.177 277.9)
XYZxyz(7.1392, 3.8614, 28.7970)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2195 #879521
analogous
#214D95 #2F2195 #692195
triadic
#2F2195 #952F21 #21952F
tetradic
#2F2195 #95214D #879521 #219569
square
#2F2195 #95214D #879521 #219569
split-complementary
#2F2195 #956921 #4D9521
monochromatic
#0F0B31 #1F1663 #2F2195 #3F2CC7 #6657DA

Accessibility & contrast

On white

11.85
#2F2195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F2195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2195
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2195#FFFFFF#000000##FFFFFF
##2F21951.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2195;
/* rgb */ color: rgb(47, 33, 149);
/* oklch */ color: oklch(35.6% 0.177 277.9);
Tailwind
colors: {
  custom: {
    50: '#775fb5',
    500: '#2f2195',
    950: '#000000',
  },
}
SCSS
$custom: #2f2195;
$custom-light: #775fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2195",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 247.241,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35642,
    "c": 0.17725,
    "h": 277.9
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#2F2195
secondary
#B1BE54
accent
#E741D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2195

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

Preview Lab → · Contrast checker → · Palette generator →

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