#2F2D98#2F2D98

#2F2D98 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.168 H 275.5°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#2F2D98
RGBrgb(47, 45, 152)
HSLhsl(241, 54%, 39%)
HSVhsv(241, 70%, 60%)
CMYKcmyk(69.1%, 70.4%, 0%, 40.4%)
CIE-LABlab(26.00, 36.02, -58.02)
CIE-LCHlch(26.00, 68.29, 301.83°)
OKLaboklab(37.72% 0.0162 -0.1676)
OKLCHoklch(37.72% 0.168 275.5)
XYZxyz(7.7763, 4.7474, 30.2062)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D98 #96982D
analogous
#2D6098 #2F2D98 #642D98
triadic
#2F2D98 #982F2D #2D982F
tetradic
#2F2D98 #982D60 #96982D #2D9864
square
#2F2D98 #982D60 #96982D #2D9864
split-complementary
#2F2D98 #98642D #60982D
monochromatic
#12113A #201F69 #2F2D98 #3F3DC5 #6E6CD3

Accessibility & contrast

On white

10.77
#2F2D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2F2D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D98
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D98#FFFFFF#000000##FFFFFF
##2F2D981.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2d98;
/* rgb */ color: rgb(47, 45, 152);
/* oklch */ color: oklch(37.7% 0.168 275.5);
Tailwind
colors: {
  custom: {
    50: '#7667b7',
    500: '#2f2d98',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d98;
$custom-light: #7667b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d98",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 241.121,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37722,
    "c": 0.16838,
    "h": 275.5
  },
  "luminance": 0.04748
}

Semantic roles & 50–950 ramp

primary
#2F2D98
secondary
#B9BA66
accent
#DE4ADB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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