#2F2F7D#2F2F7D

#2F2F7D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.129 H 277.6°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#2F2F7D
RGBrgb(47, 47, 125)
HSLhsl(240, 45%, 34%)
HSVhsv(240, 62%, 49%)
CMYKcmyk(62.4%, 62.4%, 0%, 51%)
CIE-LABlab(24.06, 25.20, -44.40)
CIE-LCHlch(24.06, 51.05, 299.57°)
OKLaboklab(35.56% 0.0171 -0.1277)
OKLCHoklch(35.56% 0.129 277.6)
XYZxyz(5.8893, 4.1176, 19.8825)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F7D #7D7D2F
analogous
#2F567D #2F2F7D #562F7D
triadic
#2F2F7D #7D2F2F #2F7D2F
tetradic
#2F2F7D #7D2F56 #7D7D2F #2F7D56
square
#2F2F7D #7D2F56 #7D7D2F #2F7D56
split-complementary
#2F2F7D #7D562F #567D2F
monochromatic
#0E0E24 #1E1E51 #2F2F7D #4040A9 #6262C4

Accessibility & contrast

On white

11.52
#2F2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F2F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F7D
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F7D#FFFFFF#000000##FFFFFF
##2F2F7D1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2f7d;
/* rgb */ color: rgb(47, 47, 125);
/* oklch */ color: oklch(35.6% 0.129 277.6);
Tailwind
colors: {
  custom: {
    50: '#7067a3',
    500: '#2f2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f7d;
$custom-light: #7067a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f7d",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 240,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35555,
    "c": 0.12879,
    "h": 277.6
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

primary
#2F2F7D
secondary
#ABAB5D
accent
#D553D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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