#2F2E77#2F2E77

#2F2E77 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.121 H 278.6°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2F2E77
RGBrgb(47, 46, 119)
HSLhsl(241, 44%, 32%)
HSVhsv(241, 61%, 47%)
CMYKcmyk(60.5%, 61.3%, 0%, 53.3%)
CIE-LABlab(23.30, 23.72, -41.82)
CIE-LCHlch(23.30, 48.08, 299.56°)
OKLaboklab(34.85% 0.0183 -0.1201)
OKLCHoklch(34.85% 0.121 278.6)
XYZxyz(5.4780, 3.8899, 17.9113)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2E77 #76772E
analogous
#2E5277 #2F2E77 #542E77
triadic
#2F2E77 #772F2E #2E772F
tetradic
#2F2E77 #772E52 #76772E #2E7754
square
#2F2E77 #772E52 #76772E #2E7754
split-complementary
#2F2E77 #77542E #52772E
monochromatic
#0C0C1F #1E1D4B #2F2E77 #403FA3 #605EC1

Accessibility & contrast

On white

11.81
#2F2E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2E77
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2E77#FFFFFF#000000##FFFFFF
##2F2E771.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B79
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#023F4D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2e77;
/* rgb */ color: rgb(47, 46, 119);
/* oklch */ color: oklch(34.8% 0.121 278.6);
Tailwind
colors: {
  custom: {
    50: '#6f679f',
    500: '#2f2e77',
    950: '#000000',
  },
}
SCSS
$custom: #2f2e77;
$custom-light: #6f679f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2e77",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 119
  },
  "hsl": {
    "h": 240.822,
    "s": 44.242,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34845,
    "c": 0.12145,
    "h": 278.6
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#2F2E77
secondary
#A7A859
accent
#D454D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F2E77

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

Preview Lab → · Contrast checker → · Palette generator →

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