#2F2F7E#2F2F7E

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

Color values

HEX#2F2F7E
RGBrgb(47, 47, 126)
HSLhsl(240, 46%, 34%)
HSVhsv(240, 63%, 49%)
CMYKcmyk(62.7%, 62.7%, 0%, 50.6%)
CIE-LABlab(24.14, 25.55, -44.90)
CIE-LCHlch(24.14, 51.66, 299.65°)
OKLaboklab(35.64% 0.017 -0.1291)
OKLCHoklch(35.64% 0.13 277.5)
XYZxyz(5.9535, 4.1433, 20.2206)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F7E #7E7E2F
analogous
#2F577E #2F2F7E #572F7E
triadic
#2F2F7E #7E2F2F #2F7E2F
tetradic
#2F2F7E #7E2F57 #7E7E2F #2F7E57
square
#2F2F7E #7E2F57 #7E7E2F #2F7E57
split-complementary
#2F2F7E #7E572F #577E2F
monochromatic
#0E0E25 #1E1E51 #2F2F7E #4040AB #6363C5

Accessibility & contrast

On white

11.48
#2F2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F7E
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F7E#FFFFFF#000000##FFFFFF
##2F2F7E1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2f7e;
/* rgb */ color: rgb(47, 47, 126);
/* oklch */ color: oklch(35.6% 0.130 277.5);
Tailwind
colors: {
  custom: {
    50: '#7167a4',
    500: '#2f2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f7e;
$custom-light: #7167a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f7e",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35642,
    "c": 0.13024,
    "h": 277.5
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#2F2F7E
secondary
#ACAC5D
accent
#D552D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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