#2F2D8B#2F2D8B

#2F2D8B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.151 H 276.8°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2F2D8B
RGBrgb(47, 45, 139)
HSLhsl(241, 51%, 36%)
HSVhsv(241, 68%, 55%)
CMYKcmyk(66.2%, 67.6%, 0%, 45.5%)
CIE-LABlab(24.78, 31.48, -52.00)
CIE-LCHlch(24.78, 60.79, 301.19°)
OKLaboklab(36.46% 0.0178 -0.15)
OKLCHoklch(36.46% 0.151 276.8)
XYZxyz(6.7694, 4.3446, 24.9030)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D8B #898B2D
analogous
#2D5A8B #2F2D8B #5E2D8B
triadic
#2F2D8B #8B2F2D #2D8B2F
tetradic
#2F2D8B #8B2D5A #898B2D #2D8B5E
square
#2F2D8B #8B2D5A #898B2D #2D8B5E
split-complementary
#2F2D8B #8B5E2D #5A8B2D
monochromatic
#100F2F #1F1E5D #2F2D8B #3F3CB9 #6765CD

Accessibility & contrast

On white

11.24
#2F2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D8B
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D8B#FFFFFF#000000##FFFFFF
##2F2D8B1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2d8b;
/* rgb */ color: rgb(47, 45, 139);
/* oklch */ color: oklch(36.5% 0.151 276.8);
Tailwind
colors: {
  custom: {
    50: '#7466ae',
    500: '#2f2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d8b;
$custom-light: #7466ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d8b",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 241.277,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36463,
    "c": 0.15103,
    "h": 276.8
  },
  "luminance": 0.04345
}

Semantic roles & 50–950 ramp

primary
#2F2D8B
secondary
#B2B460
accent
#DB4DD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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