#2F2291#2F2291

#2F2291 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.171 H 278.3°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#2F2291
RGBrgb(47, 34, 145)
HSLhsl(247, 62%, 35%)
HSVhsv(247, 77%, 57%)
CMYKcmyk(67.6%, 76.6%, 0%, 43.1%)
CIE-LABlab(22.97, 40.13, -58.70)
CIE-LCHlch(22.97, 71.10, 304.36°)
OKLaboklab(35.35% 0.0247 -0.1695)
OKLCHoklch(35.35% 0.171 278.3)
XYZxyz(6.8535, 3.7921, 27.1534)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2291 #849122
analogous
#224D91 #2F2291 #662291
triadic
#2F2291 #912F22 #22912F
tetradic
#2F2291 #91224D #849122 #229166
square
#2F2291 #91224D #849122 #229166
split-complementary
#2F2291 #916622 #4D9122
monochromatic
#0F0B2E #1F165F #2F2291 #3F2EC3 #6556D7

Accessibility & contrast

On white

11.94
#2F2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2291
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2291#FFFFFF#000000##FFFFFF
##2F22911.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2291;
/* rgb */ color: rgb(47, 34, 145);
/* oklch */ color: oklch(35.3% 0.171 278.3);
Tailwind
colors: {
  custom: {
    50: '#765fb2',
    500: '#2f2291',
    950: '#000000',
  },
}
SCSS
$custom: #2f2291;
$custom-light: #765fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2291",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 247.027,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35348,
    "c": 0.17131,
    "h": 278.3
  },
  "luminance": 0.03793
}

Semantic roles & 50–950 ramp

primary
#2F2291
secondary
#AFBB53
accent
#E543D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2291

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

Preview Lab → · Contrast checker → · Palette generator →

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