#2F2A91#2F2A91

#2F2A91 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.163 H 276.8°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2F2A91
RGBrgb(47, 42, 145)
HSLhsl(243, 55%, 37%)
HSVhsv(243, 71%, 57%)
CMYKcmyk(67.6%, 71%, 0%, 43.1%)
CIE-LABlab(24.65, 35.45, -55.93)
CIE-LCHlch(24.65, 66.22, 302.36°)
OKLaboklab(36.54% 0.0193 -0.1615)
OKLCHoklch(36.54% 0.163 276.8)
XYZxyz(7.1094, 4.3040, 27.2387)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A91 #8C912A
analogous
#2A5991 #2F2A91 #632A91
triadic
#2F2A91 #912F2A #2A912F
tetradic
#2F2A91 #912A59 #8C912A #2A9163
square
#2F2A91 #912A59 #8C912A #2A9163
split-complementary
#2F2A91 #91632A #59912A
monochromatic
#100F32 #201C62 #2F2A91 #3E38C0 #6963D2

Accessibility & contrast

On white

11.28
#2F2A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F2A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A91
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A91#FFFFFF#000000##FFFFFF
##2F2A911.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#00368F
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2a91;
/* rgb */ color: rgb(47, 42, 145);
/* oklch */ color: oklch(36.5% 0.163 276.8);
Tailwind
colors: {
  custom: {
    50: '#7564b2',
    500: '#2f2a91',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a91;
$custom-light: #7564b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a91",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 242.913,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36544,
    "c": 0.16263,
    "h": 276.8
  },
  "luminance": 0.04305
}

Semantic roles & 50–950 ramp

primary
#2F2A91
secondary
#B4B85F
accent
#DE49D7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2F2A91

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

Preview Lab → · Contrast checker → · Palette generator →

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