#2F2DB8#2F2DB8

#2F2DB8 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.0% C 0.208 H 272.9°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#2F2DB8
RGBrgb(47, 45, 184)
HSLhsl(241, 61%, 45%)
HSVhsv(241, 76%, 72%)
CMYKcmyk(74.5%, 75.5%, 0%, 27.8%)
CIE-LABlab(29.26, 46.78, -71.94)
CIE-LCHlch(29.26, 85.81, 303.03°)
OKLaboklab(41.02% 0.0106 -0.2082)
OKLCHoklch(41.02% 0.208 272.9)
XYZxyz(10.7595, 5.9407, 45.9177)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2DB8 #B6B82D
analogous
#2D71B8 #2F2DB8 #742DB8
triadic
#2F2DB8 #B82F2D #2DB82F
tetradic
#2F2DB8 #B82D71 #B6B82D #2DB874
square
#2F2DB8 #B82D71 #B6B82D #2DB874
split-complementary
#2F2DB8 #B8742D #71B82D
monochromatic
#161556 #222187 #2F2DB8 #504ED4 #8180E0

Accessibility & contrast

On white

9.60
#2F2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F2DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2DB8
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2DB8#FFFFFF#000000##FFFFFF
##2F2DB81.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBC
Deuteranopia (green-blind)
#003EB6
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f2db8;
/* rgb */ color: rgb(47, 45, 184);
/* oklch */ color: oklch(41.0% 0.208 272.9);
Tailwind
colors: {
  custom: {
    50: '#7e68cf',
    500: '#2f2db8',
    950: '#000000',
  },
}
SCSS
$custom: #2f2db8;
$custom-light: #7e68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2db8",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 240.863,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41022,
    "c": 0.20846,
    "h": 272.9
  },
  "luminance": 0.05942
}

Semantic roles & 50–950 ramp

primary
#2F2DB8
secondary
#C7C978
accent
#E444E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2F2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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