#2F2D9B#2F2D9B

#2F2D9B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.172 H 275.2°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2F2D9B
RGBrgb(47, 45, 155)
HSLhsl(241, 55%, 39%)
HSVhsv(241, 71%, 61%)
CMYKcmyk(69.7%, 71%, 0%, 39.2%)
CIE-LABlab(26.29, 37.05, -59.38)
CIE-LCHlch(26.29, 69.99, 301.96°)
OKLaboklab(38.02% 0.0157 -0.1716)
OKLCHoklch(38.02% 0.172 275.2)
XYZxyz(8.0251, 4.8469, 31.5166)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D9B #999B2D
analogous
#2D629B #2F2D9B #662D9B
triadic
#2F2D9B #9B2F2D #2D9B2F
tetradic
#2F2D9B #9B2D62 #999B2D #2D9B66
square
#2F2D9B #9B2D62 #999B2D #2D9B66
split-complementary
#2F2D9B #9B662D #629B2D
monochromatic
#12113C #211F6C #2F2D9B #413EC7 #6F6ED5

Accessibility & contrast

On white

10.66
#2F2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2F2D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D9B
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D9B#FFFFFF#000000##FFFFFF
##2F2D9B1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2d9b;
/* rgb */ color: rgb(47, 45, 155);
/* oklch */ color: oklch(38.0% 0.172 275.2);
Tailwind
colors: {
  custom: {
    50: '#7767ba',
    500: '#2f2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d9b;
$custom-light: #7767ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d9b",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 241.091,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.3802,
    "c": 0.17229,
    "h": 275.2
  },
  "luminance": 0.04848
}

Semantic roles & 50–950 ramp

primary
#2F2D9B
secondary
#BABC68
accent
#DE49DC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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