#2F2D8A#2F2D8A

#2F2D8A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.150 H 276.9°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#2F2D8A
RGBrgb(47, 45, 138)
HSLhsl(241, 51%, 36%)
HSVhsv(241, 67%, 54%)
CMYKcmyk(65.9%, 67.4%, 0%, 45.9%)
CIE-LABlab(24.69, 31.13, -51.53)
CIE-LCHlch(24.69, 60.20, 301.14°)
OKLaboklab(36.37% 0.018 -0.1486)
OKLCHoklch(36.37% 0.15 276.9)
XYZxyz(6.6966, 4.3155, 24.5199)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D8A #888A2D
analogous
#2D598A #2F2D8A #5D2D8A
triadic
#2F2D8A #8A2F2D #2D8A2F
tetradic
#2F2D8A #8A2D59 #888A2D #2D8A5D
square
#2F2D8A #8A2D59 #888A2D #2D8A5D
split-complementary
#2F2D8A #8A5D2D #598A2D
monochromatic
#100F2E #1F1E5C #2F2D8A #3F3CB8 #6765CD

Accessibility & contrast

On white

11.27
#2F2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F2D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D8A
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D8A#FFFFFF#000000##FFFFFF
##2F2D8A1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2d8a;
/* rgb */ color: rgb(47, 45, 138);
/* oklch */ color: oklch(36.4% 0.150 276.9);
Tailwind
colors: {
  custom: {
    50: '#7366ad',
    500: '#2f2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d8a;
$custom-light: #7366ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d8a",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 241.29,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36369,
    "c": 0.14967,
    "h": 276.9
  },
  "luminance": 0.04316
}

Semantic roles & 50–950 ramp

primary
#2F2D8A
secondary
#B1B360
accent
#DA4DD7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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