#2F2BA6#2F2BA6

#2F2BA6 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.188 H 274.6°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2F2BA6
RGBrgb(47, 43, 166)
HSLhsl(242, 59%, 41%)
HSVhsv(242, 74%, 65%)
CMYKcmyk(71.7%, 74.1%, 0%, 34.9%)
CIE-LABlab(26.97, 41.96, -64.94)
CIE-LCHlch(26.97, 77.32, 302.87°)
OKLaboklab(38.84% 0.015 -0.1878)
OKLCHoklch(38.84% 0.188 274.6)
XYZxyz(8.9168, 5.0844, 36.5805)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2BA6 #A2A62B
analogous
#2B64A6 #2F2BA6 #6C2BA6
triadic
#2F2BA6 #A62F2B #2BA62F
tetradic
#2F2BA6 #A62B64 #A2A62B #2BA66C
square
#2F2BA6 #A62B64 #A2A62B #2BA66C
split-complementary
#2F2BA6 #A66C2B #64A62B
monochromatic
#131245 #211E75 #2F2BA6 #4541CE #7571DA

Accessibility & contrast

On white

10.41
#2F2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2BA6
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2BA6#FFFFFF#000000##FFFFFF
##2F2BA61.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2ba6;
/* rgb */ color: rgb(47, 43, 166);
/* oklch */ color: oklch(38.8% 0.188 274.6);
Tailwind
colors: {
  custom: {
    50: '#7a66c2',
    500: '#2f2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ba6;
$custom-light: #7a66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ba6",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 241.951,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38838,
    "c": 0.1884,
    "h": 274.6
  },
  "luminance": 0.05085
}

Semantic roles & 50–950 ramp

primary
#2F2BA6
secondary
#BFC16B
accent
#E246DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #2F2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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