#2F2DB9#2F2DB9

#2F2DB9 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.1% C 0.210 H 272.9°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2F2DB9
RGBrgb(47, 45, 185)
HSLhsl(241, 61%, 45%)
HSVhsv(241, 76%, 73%)
CMYKcmyk(74.6%, 75.7%, 0%, 27.5%)
CIE-LABlab(29.37, 47.10, -72.36)
CIE-LCHlch(29.37, 86.34, 303.06°)
OKLaboklab(41.13% 0.0104 -0.2094)
OKLCHoklch(41.13% 0.21 272.9)
XYZxyz(10.8647, 5.9828, 46.4717)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2DB9 #B7B92D
analogous
#2D71B9 #2F2DB9 #752DB9
triadic
#2F2DB9 #B92F2D #2DB92F
tetradic
#2F2DB9 #B92D71 #B7B92D #2DB975
square
#2F2DB9 #B92D71 #B7B92D #2DB975
split-complementary
#2F2DB9 #B9752D #71B92D
monochromatic
#161557 #222188 #2F2DB9 #514FD4 #8280E0

Accessibility & contrast

On white

9.56
#2F2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F2DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2DB9
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2DB9#FFFFFF#000000##FFFFFF
##2F2DB91.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2db9;
/* rgb */ color: rgb(47, 45, 185);
/* oklch */ color: oklch(41.1% 0.210 272.9);
Tailwind
colors: {
  custom: {
    50: '#7e68cf',
    500: '#2f2db9',
    950: '#000000',
  },
}
SCSS
$custom: #2f2db9;
$custom-light: #7e68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2db9",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 240.857,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41129,
    "c": 0.20966,
    "h": 272.9
  },
  "luminance": 0.05984
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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