#2F2D7C#2F2D7C

#2F2D7C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.130 H 278.4°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#2F2D7C
RGBrgb(47, 45, 124)
HSLhsl(242, 47%, 33%)
HSVhsv(242, 64%, 49%)
CMYKcmyk(62.1%, 63.7%, 0%, 51.4%)
CIE-LABlab(23.46, 26.18, -44.74)
CIE-LCHlch(23.46, 51.84, 300.33°)
OKLaboklab(35.09% 0.0191 -0.1287)
OKLCHoklch(35.09% 0.13 278.4)
XYZxyz(5.7476, 3.9359, 19.5217)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D7C #7A7C2D
analogous
#2D527C #2F2D7C #562D7C
triadic
#2F2D7C #7C2F2D #2D7C2F
tetradic
#2F2D7C #7C2D52 #7A7C2D #2D7C56
square
#2F2D7C #7C2D52 #7A7C2D #2D7C56
split-complementary
#2F2D7C #7C562D #527C2D
monochromatic
#0D0C22 #1E1D4F #2F2D7C #403DA9 #615FC5

Accessibility & contrast

On white

11.75
#2F2D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F2D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D7C
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D7C#FFFFFF#000000##FFFFFF
##2F2D7C1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2d7c;
/* rgb */ color: rgb(47, 45, 124);
/* oklch */ color: oklch(35.1% 0.130 278.4);
Tailwind
colors: {
  custom: {
    50: '#7066a3',
    500: '#2f2d7c',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d7c;
$custom-light: #7066a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d7c",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 241.519,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35089,
    "c": 0.13009,
    "h": 278.4
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#2F2D7C
secondary
#A9AB5A
accent
#D651D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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