#2F2E7D#2F2E7D

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

Color values

HEX#2F2E7D
RGBrgb(47, 46, 125)
HSLhsl(241, 46%, 34%)
HSVhsv(241, 63%, 49%)
CMYKcmyk(62.4%, 63.2%, 0%, 51%)
CIE-LABlab(23.80, 25.86, -44.82)
CIE-LCHlch(23.80, 51.75, 299.99°)
OKLaboklab(35.37% 0.0181 -0.1289)
OKLCHoklch(35.37% 0.13 278)
XYZxyz(5.8498, 4.0386, 19.8693)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2E7D #7C7D2E
analogous
#2E547D #2F2E7D #562E7D
triadic
#2F2E7D #7D2F2E #2E7D2F
tetradic
#2F2E7D #7D2E54 #7C7D2E #2E7D56
square
#2F2E7D #7D2E54 #7C7D2E #2E7D56
split-complementary
#2F2E7D #7D562E #547D2E
monochromatic
#0D0D24 #1E1E50 #2F2E7D #403EAA #6261C5

Accessibility & contrast

On white

11.62
#2F2E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F2E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2E7D
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2E7D#FFFFFF#000000##FFFFFF
##2F2E7D1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2e7d;
/* rgb */ color: rgb(47, 46, 125);
/* oklch */ color: oklch(35.4% 0.130 278.0);
Tailwind
colors: {
  custom: {
    50: '#7167a3',
    500: '#2f2e7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2e7d;
$custom-light: #7167a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2e7d",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 240.759,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35365,
    "c": 0.13016,
    "h": 278
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#2F2E7D
secondary
#AAAB5B
accent
#D652D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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