#2F2F83#2F2F83

#2F2F83 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.137 H 277.0°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#2F2F83
RGBrgb(47, 47, 131)
HSLhsl(240, 47%, 35%)
HSVhsv(240, 64%, 51%)
CMYKcmyk(64.1%, 64.1%, 0%, 48.6%)
CIE-LABlab(24.56, 27.34, -47.36)
CIE-LCHlch(24.56, 54.68, 300.00°)
OKLaboklab(36.09% 0.0168 -0.1363)
OKLCHoklch(36.09% 0.137 277)
XYZxyz(6.2842, 4.2756, 21.9624)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F83 #83832F
analogous
#2F5983 #2F2F83 #592F83
triadic
#2F2F83 #832F2F #2F832F
tetradic
#2F2F83 #832F59 #83832F #2F8359
square
#2F2F83 #832F59 #83832F #2F8359
split-complementary
#2F2F83 #83592F #59832F
monochromatic
#0F0F29 #1F1F56 #2F2F83 #3F3FB0 #6565C8

Accessibility & contrast

On white

11.32
#2F2F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2F83
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F83#FFFFFF#000000##FFFFFF
##2F2F831.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#003781
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2f83;
/* rgb */ color: rgb(47, 47, 131);
/* oklch */ color: oklch(36.1% 0.137 277.0);
Tailwind
colors: {
  custom: {
    50: '#7267a8',
    500: '#2f2f83',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f83;
$custom-light: #7267a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f83",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 240,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36085,
    "c": 0.13737,
    "h": 277
  },
  "luminance": 0.04276
}

Semantic roles & 50–950 ramp

primary
#2F2F83
secondary
#AFAF5F
accent
#D751D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2F83

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

Preview Lab → · Contrast checker → · Palette generator →

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