#2F2BA1#2F2BA1

#2F2BA1 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.182 H 275.0°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#2F2BA1
RGBrgb(47, 43, 161)
HSLhsl(242, 58%, 40%)
HSVhsv(242, 73%, 63%)
CMYKcmyk(70.8%, 73.3%, 0%, 36.9%)
CIE-LABlab(26.46, 40.29, -62.76)
CIE-LCHlch(26.46, 74.58, 302.70°)
OKLaboklab(38.32% 0.016 -0.1814)
OKLCHoklch(38.32% 0.182 275)
XYZxyz(8.4671, 4.9045, 34.2118)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2BA1 #9DA12B
analogous
#2B62A1 #2F2BA1 #6A2BA1
triadic
#2F2BA1 #A12F2B #2BA12F
tetradic
#2F2BA1 #A12B62 #9DA12B #2BA16A
square
#2F2BA1 #A12B62 #9DA12B #2BA16A
split-complementary
#2F2BA1 #A16A2B #62A12B
monochromatic
#131140 #211E71 #2F2BA1 #433ECB #726ED8

Accessibility & contrast

On white

10.60
#2F2BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F2BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2BA1
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2BA1#FFFFFF#000000##FFFFFF
##2F2BA11.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#00399F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2ba1;
/* rgb */ color: rgb(47, 43, 161);
/* oklch */ color: oklch(38.3% 0.182 275.0);
Tailwind
colors: {
  custom: {
    50: '#7966be',
    500: '#2f2ba1',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ba1;
$custom-light: #7966be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ba1",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 242.034,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.3832,
    "c": 0.18213,
    "h": 275
  },
  "luminance": 0.04905
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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