#2F2D7A#2F2D7A

#2F2D7A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.127 H 278.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2F2D7A
RGBrgb(47, 45, 122)
HSLhsl(242, 46%, 33%)
HSVhsv(242, 63%, 48%)
CMYKcmyk(61.5%, 63.1%, 0%, 52.2%)
CIE-LABlab(23.29, 25.46, -43.75)
CIE-LCHlch(23.29, 50.62, 300.20°)
OKLaboklab(34.91% 0.0192 -0.1257)
OKLCHoklch(34.91% 0.127 278.7)
XYZxyz(5.6224, 3.8858, 18.8623)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D7A #787A2D
analogous
#2D527A #2F2D7A #552D7A
triadic
#2F2D7A #7A2F2D #2D7A2F
tetradic
#2F2D7A #7A2D52 #787A2D #2D7A55
square
#2F2D7A #7A2D52 #787A2D #2D7A55
split-complementary
#2F2D7A #7A552D #527A2D
monochromatic
#0D0C21 #1E1D4D #2F2D7A #403DA7 #605EC4

Accessibility & contrast

On white

11.82
#2F2D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F2D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D7A
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D7A#FFFFFF#000000##FFFFFF
##2F2D7A1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2d7a;
/* rgb */ color: rgb(47, 45, 122);
/* oklch */ color: oklch(34.9% 0.127 278.7);
Tailwind
colors: {
  custom: {
    50: '#7066a1',
    500: '#2f2d7a',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d7a;
$custom-light: #7066a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d7a",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 241.558,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34912,
    "c": 0.12721,
    "h": 278.7
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#2F2D7A
secondary
#A8AA59
accent
#D652D2
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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