#2F2CA6#2F2CA6

#2F2CA6 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.187 H 274.4°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2F2CA6
RGBrgb(47, 44, 166)
HSLhsl(241, 58%, 41%)
HSVhsv(241, 73%, 65%)
CMYKcmyk(71.7%, 73.5%, 0%, 34.9%)
CIE-LABlab(27.18, 41.38, -64.60)
CIE-LCHlch(27.18, 76.72, 302.64°)
OKLaboklab(38.99% 0.0145 -0.1868)
OKLCHoklch(38.99% 0.187 274.4)
XYZxyz(8.9536, 5.1580, 36.5927)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2CA6 #A3A62C
analogous
#2C66A6 #2F2CA6 #6C2CA6
triadic
#2F2CA6 #A62F2C #2CA62F
tetradic
#2F2CA6 #A62C66 #A3A62C #2CA66C
square
#2F2CA6 #A62C66 #A3A62C #2CA66C
split-complementary
#2F2CA6 #A66C2C #66A62C
monochromatic
#141245 #211F76 #2F2CA6 #4642CD #7573DA

Accessibility & contrast

On white

10.34
#2F2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F2CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2CA6
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2CA6#FFFFFF#000000##FFFFFF
##2F2CA61.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2ca6;
/* rgb */ color: rgb(47, 44, 166);
/* oklch */ color: oklch(39.0% 0.187 274.4);
Tailwind
colors: {
  custom: {
    50: '#7a67c2',
    500: '#2f2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ca6;
$custom-light: #7a67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ca6",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 241.475,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38985,
    "c": 0.18737,
    "h": 274.4
  },
  "luminance": 0.05159
}

Semantic roles & 50–950 ramp

primary
#2F2CA6
secondary
#BFC16D
accent
#E146DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #2F2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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