#2F2EAE#2F2EAE

#2F2EAE is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.1% C 0.195 H 273.5°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#2F2EAE
RGBrgb(47, 46, 174)
HSLhsl(240, 58%, 43%)
HSVhsv(240, 74%, 68%)
CMYKcmyk(73%, 73.6%, 0%, 31.8%)
CIE-LABlab(28.42, 42.91, -67.38)
CIE-LCHlch(28.42, 79.88, 302.49°)
OKLaboklab(40.11% 0.012 -0.1949)
OKLCHoklch(40.11% 0.195 273.5)
XYZxyz(9.7867, 5.6133, 40.6039)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EAE #ADAE2E
analogous
#2E6DAE #2F2EAE #6F2EAE
triadic
#2F2EAE #AE2F2E #2EAE2F
tetradic
#2F2EAE #AE2E6D #ADAE2E #2EAE6F
square
#2F2EAE #AE2E6D #ADAE2E #2EAE6F
split-complementary
#2F2EAE #AE6F2E #6DAE2E
monochromatic
#15144D #22217E #2F2EAE #4B4ACF #7B7ADC

Accessibility & contrast

On white

9.89
#2F2EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2F2EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EAE
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EAE#FFFFFF#000000##FFFFFF
##2F2EAE1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#003DAC
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f2eae;
/* rgb */ color: rgb(47, 46, 174);
/* oklch */ color: oklch(40.1% 0.195 273.5);
Tailwind
colors: {
  custom: {
    50: '#7b68c7',
    500: '#2f2eae',
    950: '#000000',
  },
}
SCSS
$custom: #2f2eae;
$custom-light: #7b68c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2eae",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 174
  },
  "hsl": {
    "h": 240.469,
    "s": 58.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4011,
    "c": 0.19528,
    "h": 273.5
  },
  "luminance": 0.05614
}

Semantic roles & 50–950 ramp

primary
#2F2EAE
secondary
#C4C474
accent
#E146E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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