#2F2CA7#2F2CA7

#2F2CA7 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.189 H 274.3°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#2F2CA7
RGBrgb(47, 44, 167)
HSLhsl(241, 58%, 41%)
HSVhsv(241, 74%, 65%)
CMYKcmyk(71.9%, 73.7%, 0%, 34.5%)
CIE-LABlab(27.28, 41.72, -65.04)
CIE-LCHlch(27.28, 77.27, 302.68°)
OKLaboklab(39.09% 0.0143 -0.1881)
OKLCHoklch(39.09% 0.189 274.3)
XYZxyz(9.0457, 5.1948, 37.0777)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2CA7 #A4A72C
analogous
#2C67A7 #2F2CA7 #6D2CA7
triadic
#2F2CA7 #A72F2C #2CA72F
tetradic
#2F2CA7 #A72C67 #A4A72C #2CA76D
square
#2F2CA7 #A72C67 #A4A72C #2CA76D
split-complementary
#2F2CA7 #A76D2C #67A72C
monochromatic
#141246 #211F77 #2F2CA7 #4643CD #7673DA

Accessibility & contrast

On white

10.30
#2F2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F2CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2CA7
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2CA7#FFFFFF#000000##FFFFFF
##2F2CA71.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2ca7;
/* rgb */ color: rgb(47, 44, 167);
/* oklch */ color: oklch(39.1% 0.189 274.3);
Tailwind
colors: {
  custom: {
    50: '#7a67c2',
    500: '#2f2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ca7;
$custom-light: #7a67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ca7",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 241.463,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39089,
    "c": 0.18862,
    "h": 274.3
  },
  "luminance": 0.05196
}

Semantic roles & 50–950 ramp

primary
#2F2CA7
secondary
#C0C26D
accent
#E246DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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