#2F2D96#2F2D96

#2F2D96 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.166 H 275.7°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#2F2D96
RGBrgb(47, 45, 150)
HSLhsl(241, 54%, 38%)
HSVhsv(241, 70%, 59%)
CMYKcmyk(68.7%, 70%, 0%, 41.2%)
CIE-LABlab(25.81, 35.32, -57.11)
CIE-LCHlch(25.81, 67.15, 301.74°)
OKLaboklab(37.52% 0.0165 -0.1649)
OKLCHoklch(37.52% 0.166 275.7)
XYZxyz(7.6139, 4.6824, 29.3508)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D96 #94962D
analogous
#2D5F96 #2F2D96 #632D96
triadic
#2F2D96 #962F2D #2D962F
tetradic
#2F2D96 #962D5F #94962D #2D9663
square
#2F2D96 #962D5F #94962D #2D9663
split-complementary
#2F2D96 #96632D #5F962D
monochromatic
#111138 #201F67 #2F2D96 #3E3CC4 #6D6BD3

Accessibility & contrast

On white

10.84
#2F2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F2D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D96
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D96#FFFFFF#000000##FFFFFF
##2F2D961.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2d96;
/* rgb */ color: rgb(47, 45, 150);
/* oklch */ color: oklch(37.5% 0.166 275.7);
Tailwind
colors: {
  custom: {
    50: '#7667b6',
    500: '#2f2d96',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d96;
$custom-light: #7667b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d96",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 241.143,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37524,
    "c": 0.16575,
    "h": 275.7
  },
  "luminance": 0.04683
}

Semantic roles & 50–950 ramp

primary
#2F2D96
secondary
#B8B965
accent
#DD4BDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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