#2F2B81#2F2B81

#2F2B81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.140 H 278.5°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#2F2B81
RGBrgb(47, 43, 129)
HSLhsl(243, 50%, 34%)
HSVhsv(243, 67%, 51%)
CMYKcmyk(63.6%, 66.7%, 0%, 49.4%)
CIE-LABlab(23.39, 29.26, -48.01)
CIE-LCHlch(23.39, 56.22, 301.36°)
OKLaboklab(35.18% 0.0206 -0.1383)
OKLCHoklch(35.18% 0.14 278.5)
XYZxyz(5.9973, 3.9166, 21.2046)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B81 #7D812B
analogous
#2B5281 #2F2B81 #5A2B81
triadic
#2F2B81 #812F2B #2B812F
tetradic
#2F2B81 #812B52 #7D812B #2B815A
square
#2F2B81 #812B52 #7D812B #2B815A
split-complementary
#2F2B81 #815A2B #52812B
monochromatic
#0E0C25 #1E1C53 #2F2B81 #403AAF #625DC9

Accessibility & contrast

On white

11.78
#2F2B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F2B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B81
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B81#FFFFFF#000000##FFFFFF
##2F2B811.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2b81;
/* rgb */ color: rgb(47, 43, 129);
/* oklch */ color: oklch(35.2% 0.140 278.5);
Tailwind
colors: {
  custom: {
    50: '#7265a6',
    500: '#2f2b81',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b81;
$custom-light: #7265a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b81",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 242.791,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35177,
    "c": 0.1398,
    "h": 278.5
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#2F2B81
secondary
#ABAF59
accent
#DA4ED3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #2F2B81

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

Preview Lab → · Contrast checker → · Palette generator →

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