#2F2DA1#2F2DA1

#2F2DA1 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.180 H 274.7°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#2F2DA1
RGBrgb(47, 45, 161)
HSLhsl(241, 56%, 40%)
HSVhsv(241, 72%, 63%)
CMYKcmyk(70.8%, 72%, 0%, 36.9%)
CIE-LABlab(26.89, 39.10, -62.06)
CIE-LCHlch(26.89, 73.35, 302.22°)
OKLaboklab(38.62% 0.0148 -0.1794)
OKLCHoklch(38.62% 0.18 274.7)
XYZxyz(8.5416, 5.0535, 34.2366)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2DA1 #9FA12D
analogous
#2D65A1 #2F2DA1 #692DA1
triadic
#2F2DA1 #A12F2D #2DA12F
tetradic
#2F2DA1 #A12D65 #9FA12D #2DA169
square
#2F2DA1 #A12D65 #9FA12D #2DA169
split-complementary
#2F2DA1 #A1692D #65A12D
monochromatic
#131241 #212071 #2F2DA1 #4441CA #7371D7

Accessibility & contrast

On white

10.44
#2F2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F2DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2DA1
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2DA1#FFFFFF#000000##FFFFFF
##2F2DA11.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2da1;
/* rgb */ color: rgb(47, 45, 161);
/* oklch */ color: oklch(38.6% 0.180 274.7);
Tailwind
colors: {
  custom: {
    50: '#7867be',
    500: '#2f2da1',
    950: '#000000',
  },
}
SCSS
$custom: #2f2da1;
$custom-light: #7867be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2da1",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 241.034,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38624,
    "c": 0.18,
    "h": 274.7
  },
  "luminance": 0.05054
}

Semantic roles & 50–950 ramp

primary
#2F2DA1
secondary
#BDBF6B
accent
#E048DD
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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