#2F2D9A#2F2D9A

#2F2D9A is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.171 H 275.3°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2F2D9A
RGBrgb(47, 45, 154)
HSLhsl(241, 55%, 39%)
HSVhsv(241, 71%, 60%)
CMYKcmyk(69.5%, 70.8%, 0%, 39.6%)
CIE-LABlab(26.20, 36.70, -58.93)
CIE-LCHlch(26.20, 69.42, 301.92°)
OKLaboklab(37.92% 0.0159 -0.1703)
OKLCHoklch(37.92% 0.171 275.3)
XYZxyz(7.9415, 4.8135, 31.0762)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D9A #989A2D
analogous
#2D629A #2F2D9A #662D9A
triadic
#2F2D9A #9A2F2D #2D9A2F
tetradic
#2F2D9A #9A2D62 #989A2D #2D9A66
square
#2F2D9A #9A2D62 #989A2D #2D9A66
split-complementary
#2F2D9A #9A662D #629A2D
monochromatic
#12113B #211F6B #2F2D9A #403EC7 #6F6DD4

Accessibility & contrast

On white

10.70
#2F2D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2F2D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D9A
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D9A#FFFFFF#000000##FFFFFF
##2F2D9A1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2d9a;
/* rgb */ color: rgb(47, 45, 154);
/* oklch */ color: oklch(37.9% 0.171 275.3);
Tailwind
colors: {
  custom: {
    50: '#7767b9',
    500: '#2f2d9a',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d9a;
$custom-light: #7767b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d9a",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 241.101,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3792,
    "c": 0.17099,
    "h": 275.3
  },
  "luminance": 0.04814
}

Semantic roles & 50–950 ramp

primary
#2F2D9A
secondary
#BABB67
accent
#DE4ADB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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