#2F2F81#2F2F81

#2F2F81 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.135 H 277.2°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#2F2F81
RGBrgb(47, 47, 129)
HSLhsl(240, 47%, 35%)
HSVhsv(240, 64%, 51%)
CMYKcmyk(63.6%, 63.6%, 0%, 49.4%)
CIE-LABlab(24.39, 26.63, -46.38)
CIE-LCHlch(24.39, 53.48, 299.86°)
OKLaboklab(35.91% 0.0169 -0.1335)
OKLCHoklch(35.91% 0.135 277.2)
XYZxyz(6.1500, 4.2219, 21.2554)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F81 #81812F
analogous
#2F5881 #2F2F81 #582F81
triadic
#2F2F81 #812F2F #2F812F
tetradic
#2F2F81 #812F58 #81812F #2F8158
square
#2F2F81 #812F58 #81812F #2F8158
split-complementary
#2F2F81 #81582F #58812F
monochromatic
#0E0E27 #1F1F54 #2F2F81 #3F3FAE #6464C6

Accessibility & contrast

On white

11.39
#2F2F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F2F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F81
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F81#FFFFFF#000000##FFFFFF
##2F2F811.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2f81;
/* rgb */ color: rgb(47, 47, 129);
/* oklch */ color: oklch(35.9% 0.135 277.2);
Tailwind
colors: {
  custom: {
    50: '#7167a6',
    500: '#2f2f81',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f81;
$custom-light: #7167a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f81",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 240,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35907,
    "c": 0.13453,
    "h": 277.2
  },
  "luminance": 0.04222
}

Semantic roles & 50–950 ramp

primary
#2F2F81
secondary
#ADAD5E
accent
#D652D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2F81

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

Preview Lab → · Contrast checker → · Palette generator →

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