#2F2BA3#2F2BA3

#2F2BA3 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.185 H 274.8°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#2F2BA3
RGBrgb(47, 43, 163)
HSLhsl(242, 58%, 40%)
HSVhsv(242, 74%, 64%)
CMYKcmyk(71.2%, 73.6%, 0%, 36.1%)
CIE-LABlab(26.67, 40.96, -63.64)
CIE-LCHlch(26.67, 75.68, 302.77°)
OKLaboklab(38.53% 0.0156 -0.184)
OKLCHoklch(38.53% 0.185 274.8)
XYZxyz(8.6448, 4.9756, 35.1480)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2BA3 #9FA32B
analogous
#2B63A3 #2F2BA3 #6B2BA3
triadic
#2F2BA3 #A32F2B #2BA32F
tetradic
#2F2BA3 #A32B63 #9FA32B #2BA36B
square
#2F2BA3 #A32B63 #9FA32B #2BA36B
split-complementary
#2F2BA3 #A36B2B #63A32B
monochromatic
#131142 #211E73 #2F2BA3 #443FCC #736FD9

Accessibility & contrast

On white

10.53
#2F2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2BA3
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2BA3#FFFFFF#000000##FFFFFF
##2F2BA31.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A7
Deuteranopia (green-blind)
#0039A1
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2ba3;
/* rgb */ color: rgb(47, 43, 163);
/* oklch */ color: oklch(38.5% 0.185 274.8);
Tailwind
colors: {
  custom: {
    50: '#7966bf',
    500: '#2f2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ba3;
$custom-light: #7966bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ba3",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 242,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38526,
    "c": 0.18465,
    "h": 274.8
  },
  "luminance": 0.04976
}

Semantic roles & 50–950 ramp

primary
#2F2BA3
secondary
#BDC06A
accent
#E146DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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