#2F2D8D#2F2D8D

#2F2D8D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.154 H 276.6°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2F2D8D
RGBrgb(47, 45, 141)
HSLhsl(241, 52%, 36%)
HSVhsv(241, 68%, 55%)
CMYKcmyk(66.7%, 68.1%, 0%, 44.7%)
CIE-LABlab(24.96, 32.18, -52.94)
CIE-LCHlch(24.96, 61.96, 301.30°)
OKLaboklab(36.65% 0.0176 -0.1527)
OKLCHoklch(36.65% 0.154 276.6)
XYZxyz(6.9168, 4.4036, 25.6796)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D8D #8B8D2D
analogous
#2D5B8D #2F2D8D #5F2D8D
triadic
#2F2D8D #8D2F2D #2D8D2F
tetradic
#2F2D8D #8D2D5B #8B8D2D #2D8D5F
square
#2F2D8D #8D2D5B #8B8D2D #2D8D5F
split-complementary
#2F2D8D #8D5F2D #5B8D2D
monochromatic
#100F30 #201E5F #2F2D8D #3E3CBB #6866CE

Accessibility & contrast

On white

11.17
#2F2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F2D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D8D
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D8D#FFFFFF#000000##FFFFFF
##2F2D8D1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2d8d;
/* rgb */ color: rgb(47, 45, 141);
/* oklch */ color: oklch(36.7% 0.154 276.6);
Tailwind
colors: {
  custom: {
    50: '#7466af',
    500: '#2f2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d8d;
$custom-light: #7466af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d8d",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 241.25,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36653,
    "c": 0.15374,
    "h": 276.6
  },
  "luminance": 0.04404
}

Semantic roles & 50–950 ramp

primary
#2F2D8D
secondary
#B3B561
accent
#DB4DD8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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