#2F2DB2#2F2DB2

#2F2DB2 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.4% C 0.201 H 273.4°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#2F2DB2
RGBrgb(47, 45, 178)
HSLhsl(241, 60%, 44%)
HSVhsv(241, 75%, 70%)
CMYKcmyk(73.6%, 74.7%, 0%, 30.2%)
CIE-LABlab(28.63, 44.81, -69.42)
CIE-LCHlch(28.63, 82.62, 302.84°)
OKLaboklab(40.39% 0.0118 -0.2008)
OKLCHoklch(40.39% 0.201 273.4)
XYZxyz(10.1439, 5.6944, 42.6754)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2DB2 #B0B22D
analogous
#2D6DB2 #2F2DB2 #712DB2
triadic
#2F2DB2 #B22F2D #2DB22F
tetradic
#2F2DB2 #B22D6D #B0B22D #2DB271
square
#2F2DB2 #B22D6D #B0B22D #2DB271
split-complementary
#2F2DB2 #B2712D #6DB22D
monochromatic
#151450 #222181 #2F2DB2 #4D4BD1 #7D7CDE

Accessibility & contrast

On white

9.82
#2F2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F2DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2DB2
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2DB2#FFFFFF#000000##FFFFFF
##2F2DB21.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#003DB0
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f2db2;
/* rgb */ color: rgb(47, 45, 178);
/* oklch */ color: oklch(40.4% 0.201 273.4);
Tailwind
colors: {
  custom: {
    50: '#7c68ca',
    500: '#2f2db2',
    950: '#000000',
  },
}
SCSS
$custom: #2f2db2;
$custom-light: #7c68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2db2",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 240.902,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40385,
    "c": 0.20119,
    "h": 273.4
  },
  "luminance": 0.05695
}

Semantic roles & 50–950 ramp

primary
#2F2DB2
secondary
#C5C675
accent
#E345E0
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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