#2F2391#2F2391

#2F2391 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.170 H 278.1°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2F2391
RGBrgb(47, 35, 145)
HSLhsl(247, 61%, 35%)
HSVhsv(247, 76%, 57%)
CMYKcmyk(67.6%, 75.9%, 0%, 43.1%)
CIE-LABlab(23.17, 39.57, -58.37)
CIE-LCHlch(23.17, 70.52, 304.13°)
OKLaboklab(35.49% 0.0241 -0.1686)
OKLCHoklch(35.49% 0.17 278.1)
XYZxyz(6.8825, 3.8502, 27.1630)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2391 #859123
analogous
#234E91 #2F2391 #662391
triadic
#2F2391 #912F23 #23912F
tetradic
#2F2391 #91234E #859123 #239166
square
#2F2391 #91234E #859123 #239166
split-complementary
#2F2391 #916623 #4E9123
monochromatic
#0F0B2E #1F1760 #2F2391 #3F2FC2 #6658D7

Accessibility & contrast

On white

11.86
#2F2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2391
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2391#FFFFFF#000000##FFFFFF
##2F23911.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2391;
/* rgb */ color: rgb(47, 35, 145);
/* oklch */ color: oklch(35.5% 0.170 278.1);
Tailwind
colors: {
  custom: {
    50: '#7660b2',
    500: '#2f2391',
    950: '#000000',
  },
}
SCSS
$custom: #2f2391;
$custom-light: #7660b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2391",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 246.545,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35488,
    "c": 0.17029,
    "h": 278.1
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#2F2391
secondary
#B0BB55
accent
#E444D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2391

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

Preview Lab → · Contrast checker → · Palette generator →

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