#2F2E97#2F2E97

#2F2E97 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.166 H 275.4°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#2F2E97
RGBrgb(47, 46, 151)
HSLhsl(241, 53%, 39%)
HSVhsv(241, 70%, 59%)
CMYKcmyk(68.9%, 69.5%, 0%, 40.8%)
CIE-LABlab(26.13, 35.05, -57.19)
CIE-LCHlch(26.13, 67.08, 301.50°)
OKLaboklab(37.79% 0.0156 -0.1652)
OKLCHoklch(37.79% 0.166 275.4)
XYZxyz(7.7334, 4.7920, 29.7896)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2E97 #96972E
analogous
#2E6197 #2F2E97 #632E97
triadic
#2F2E97 #972F2E #2E972F
tetradic
#2F2E97 #972E61 #96972E #2E9763
square
#2F2E97 #972E61 #96972E #2E9763
split-complementary
#2F2E97 #97632E #61972E
monochromatic
#121139 #202068 #2F2E97 #3F3EC4 #6E6DD2

Accessibility & contrast

On white

10.72
#2F2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2F2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2E97
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2E97#FFFFFF#000000##FFFFFF
##2F2E971.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2e97;
/* rgb */ color: rgb(47, 46, 151);
/* oklch */ color: oklch(37.8% 0.166 275.4);
Tailwind
colors: {
  custom: {
    50: '#7667b7',
    500: '#2f2e97',
    950: '#000000',
  },
}
SCSS
$custom: #2f2e97;
$custom-light: #7667b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2e97",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 240.571,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37787,
    "c": 0.16592,
    "h": 275.4
  },
  "luminance": 0.04793
}

Semantic roles & 50–950 ramp

primary
#2F2E97
secondary
#B9BA67
accent
#DD4BDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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