#2F2E7B#2F2E7B

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

Color values

HEX#2F2E7B
RGBrgb(47, 46, 123)
HSLhsl(241, 46%, 33%)
HSVhsv(241, 63%, 48%)
CMYKcmyk(61.8%, 62.6%, 0%, 51.8%)
CIE-LABlab(23.63, 25.15, -43.83)
CIE-LCHlch(23.63, 50.53, 299.85°)
OKLaboklab(35.19% 0.0181 -0.126)
OKLCHoklch(35.19% 0.127 278.2)
XYZxyz(5.7233, 3.9880, 19.2032)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2E7B #7A7B2E
analogous
#2E537B #2F2E7B #552E7B
triadic
#2F2E7B #7B2F2E #2E7B2F
tetradic
#2F2E7B #7B2E53 #7A7B2E #2E7B55
square
#2F2E7B #7B2E53 #7A7B2E #2E7B55
split-complementary
#2F2E7B #7B552E #537B2E
monochromatic
#0D0D22 #1E1D4E #2F2E7B #403FA8 #6160C3

Accessibility & contrast

On white

11.68
#2F2E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2E7B
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2E7B#FFFFFF#000000##FFFFFF
##2F2E7B1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2e7b;
/* rgb */ color: rgb(47, 46, 123);
/* oklch */ color: oklch(35.2% 0.127 278.2);
Tailwind
colors: {
  custom: {
    50: '#7067a2',
    500: '#2f2e7b',
    950: '#000000',
  },
}
SCSS
$custom: #2f2e7b;
$custom-light: #7067a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2e7b",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 240.779,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3519,
    "c": 0.12728,
    "h": 278.2
  },
  "luminance": 0.03988
}

Semantic roles & 50–950 ramp

primary
#2F2E7B
secondary
#A9AA5B
accent
#D553D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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