#2F2F91#2F2F91

#2F2F91 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.157 H 275.7°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#2F2F91
RGBrgb(47, 47, 145)
HSLhsl(240, 51%, 38%)
HSVhsv(240, 68%, 57%)
CMYKcmyk(67.6%, 67.6%, 0%, 43.1%)
CIE-LABlab(25.81, 32.32, -54.04)
CIE-LCHlch(25.81, 62.96, 300.88°)
OKLaboklab(37.38% 0.0156 -0.1559)
OKLCHoklch(37.38% 0.157 275.7)
XYZxyz(7.2980, 4.6811, 27.3015)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F91 #91912F
analogous
#2F6091 #2F2F91 #602F91
triadic
#2F2F91 #912F2F #2F912F
tetradic
#2F2F91 #912F60 #91912F #2F9160
square
#2F2F91 #912F60 #91912F #2F9160
split-complementary
#2F2F91 #91602F #60912F
monochromatic
#111135 #202063 #2F2F91 #3E3EBF #6B6BCF

Accessibility & contrast

On white

10.84
#2F2F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F2F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F91
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F91#FFFFFF#000000##FFFFFF
##2F2F911.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00398F
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2f91;
/* rgb */ color: rgb(47, 47, 145);
/* oklch */ color: oklch(37.4% 0.157 275.7);
Tailwind
colors: {
  custom: {
    50: '#7568b2',
    500: '#2f2f91',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f91;
$custom-light: #7568b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f91",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 240,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37378,
    "c": 0.15672,
    "h": 275.7
  },
  "luminance": 0.04682
}

Semantic roles & 50–950 ramp

primary
#2F2F91
secondary
#B6B665
accent
#DB4DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F2F91

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

Preview Lab → · Contrast checker → · Palette generator →

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