#2F2BA2#2F2BA2

#2F2BA2 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.183 H 274.9°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2F2BA2
RGBrgb(47, 43, 162)
HSLhsl(242, 58%, 40%)
HSVhsv(242, 73%, 64%)
CMYKcmyk(71%, 73.5%, 0%, 36.5%)
CIE-LABlab(26.56, 40.62, -63.20)
CIE-LCHlch(26.56, 75.13, 302.73°)
OKLaboklab(38.42% 0.0158 -0.1827)
OKLCHoklch(38.42% 0.183 274.9)
XYZxyz(8.5556, 4.9399, 34.6780)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2BA2 #9EA22B
analogous
#2B62A2 #2F2BA2 #6B2BA2
triadic
#2F2BA2 #A22F2B #2BA22F
tetradic
#2F2BA2 #A22B62 #9EA22B #2BA26B
square
#2F2BA2 #A22B62 #9EA22B #2BA26B
split-complementary
#2F2BA2 #A26B2B #62A22B
monochromatic
#131141 #211E72 #2F2BA2 #433ECC #726FD9

Accessibility & contrast

On white

10.56
#2F2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F2BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2BA2
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2BA2#FFFFFF#000000##FFFFFF
##2F2BA21.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2ba2;
/* rgb */ color: rgb(47, 43, 162);
/* oklch */ color: oklch(38.4% 0.183 274.9);
Tailwind
colors: {
  custom: {
    50: '#7966bf',
    500: '#2f2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ba2;
$custom-light: #7966bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ba2",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 242.017,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38423,
    "c": 0.18339,
    "h": 274.9
  },
  "luminance": 0.04941
}

Semantic roles & 50–950 ramp

primary
#2F2BA2
secondary
#BDC069
accent
#E147DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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