#2F2F79#2F2F79

#2F2F79 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.123 H 278.0°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#2F2F79
RGBrgb(47, 47, 121)
HSLhsl(240, 44%, 33%)
HSVhsv(240, 61%, 47%)
CMYKcmyk(61.2%, 61.2%, 0%, 52.5%)
CIE-LABlab(23.73, 23.76, -42.40)
CIE-LCHlch(23.73, 48.61, 299.27°)
OKLaboklab(35.21% 0.0172 -0.1218)
OKLCHoklch(35.21% 0.123 278)
XYZxyz(5.6389, 4.0174, 18.5637)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F79 #79792F
analogous
#2F5479 #2F2F79 #542F79
triadic
#2F2F79 #792F2F #2F792F
tetradic
#2F2F79 #792F54 #79792F #2F7954
square
#2F2F79 #792F54 #79792F #2F7954
split-complementary
#2F2F79 #79542F #54792F
monochromatic
#0D0D21 #1E1E4D #2F2F79 #4040A5 #6161C2

Accessibility & contrast

On white

11.64
#2F2F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F2F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F79
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F79#FFFFFF#000000##FFFFFF
##2F2F791.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7B
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2f79;
/* rgb */ color: rgb(47, 47, 121);
/* oklch */ color: oklch(35.2% 0.123 278.0);
Tailwind
colors: {
  custom: {
    50: '#7067a0',
    500: '#2f2f79',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f79;
$custom-light: #7067a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f79",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 240,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3521,
    "c": 0.12298,
    "h": 278
  },
  "luminance": 0.04018
}

Semantic roles & 50–950 ramp

primary
#2F2F79
secondary
#A8A85B
accent
#D454D4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2F2F79

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

Preview Lab → · Contrast checker → · Palette generator →

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