#2F2BA4#2F2BA4

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

Color values

HEX#2F2BA4
RGBrgb(47, 43, 164)
HSLhsl(242, 58%, 41%)
HSVhsv(242, 74%, 64%)
CMYKcmyk(71.3%, 73.8%, 0%, 35.7%)
CIE-LABlab(26.77, 41.29, -64.07)
CIE-LCHlch(26.77, 76.23, 302.80°)
OKLaboklab(38.63% 0.0154 -0.1853)
OKLCHoklch(38.63% 0.186 274.8)
XYZxyz(8.7348, 5.0116, 35.6218)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2BA4 #A0A42B
analogous
#2B64A4 #2F2BA4 #6B2BA4
triadic
#2F2BA4 #A42F2B #2BA42F
tetradic
#2F2BA4 #A42B64 #A0A42B #2BA46B
square
#2F2BA4 #A42B64 #A0A42B #2BA46B
split-complementary
#2F2BA4 #A46B2B #64A42B
monochromatic
#131243 #211E74 #2F2BA4 #443FCD #7370D9

Accessibility & contrast

On white

10.49
#2F2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2BA4
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2BA4#FFFFFF#000000##FFFFFF
##2F2BA41.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2ba4;
/* rgb */ color: rgb(47, 43, 164);
/* oklch */ color: oklch(38.6% 0.186 274.8);
Tailwind
colors: {
  custom: {
    50: '#7966c0',
    500: '#2f2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ba4;
$custom-light: #7966c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ba4",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 241.983,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.3863,
    "c": 0.1859,
    "h": 274.8
  },
  "luminance": 0.05012
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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