#2F2E91#2F2E91

#2F2E91 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.158 H 275.9°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#2F2E91
RGBrgb(47, 46, 145)
HSLhsl(241, 52%, 37%)
HSVhsv(241, 68%, 57%)
CMYKcmyk(67.6%, 68.3%, 0%, 43.1%)
CIE-LABlab(25.57, 32.95, -54.42)
CIE-LCHlch(25.57, 63.62, 301.19°)
OKLaboklab(37.21% 0.0164 -0.1571)
OKLCHoklch(37.21% 0.158 275.9)
XYZxyz(7.2584, 4.6020, 27.2883)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2E91 #90912E
analogous
#2E5F91 #2F2E91 #602E91
triadic
#2F2E91 #912F2E #2E912F
tetradic
#2F2E91 #912E5F #90912E #2E9160
square
#2F2E91 #912E5F #90912E #2E9160
split-complementary
#2F2E91 #91602E #5F912E
monochromatic
#111134 #201F63 #2F2E91 #3E3DBF #6B6AD0

Accessibility & contrast

On white

10.93
#2F2E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F2E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2E91
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2E91#FFFFFF#000000##FFFFFF
##2F2E911.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00388F
Tritanopia (blue-blind)
#00485B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2e91;
/* rgb */ color: rgb(47, 46, 145);
/* oklch */ color: oklch(37.2% 0.158 275.9);
Tailwind
colors: {
  custom: {
    50: '#7567b2',
    500: '#2f2e91',
    950: '#000000',
  },
}
SCSS
$custom: #2f2e91;
$custom-light: #7567b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2e91",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 145
  },
  "hsl": {
    "h": 240.606,
    "s": 51.832,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37206,
    "c": 0.15793,
    "h": 275.9
  },
  "luminance": 0.04603
}

Semantic roles & 50–950 ramp

primary
#2F2E91
secondary
#B6B764
accent
#DB4DDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F2E91

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

Preview Lab → · Contrast checker → · Palette generator →

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