#2F2F7A#2F2F7A

#2F2F7A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.124 H 277.9°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#2F2F7A
RGBrgb(47, 47, 122)
HSLhsl(240, 44%, 33%)
HSVhsv(240, 61%, 48%)
CMYKcmyk(61.5%, 61.5%, 0%, 52.2%)
CIE-LABlab(23.81, 24.12, -42.90)
CIE-LCHlch(23.81, 49.22, 299.35°)
OKLaboklab(35.3% 0.0171 -0.1233)
OKLCHoklch(35.3% 0.124 277.9)
XYZxyz(5.7005, 4.0421, 18.8884)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F7A #7A7A2F
analogous
#2F547A #2F2F7A #542F7A
triadic
#2F2F7A #7A2F2F #2F7A2F
tetradic
#2F2F7A #7A2F54 #7A7A2F #2F7A54
square
#2F2F7A #7A2F54 #7A7A2F #2F7A54
split-complementary
#2F2F7A #7A542F #547A2F
monochromatic
#0D0D22 #1E1E4E #2F2F7A #4040A6 #6161C2

Accessibility & contrast

On white

11.61
#2F2F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F2F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F7A
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F7A#FFFFFF#000000##FFFFFF
##2F2F7A1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2f7a;
/* rgb */ color: rgb(47, 47, 122);
/* oklch */ color: oklch(35.3% 0.124 277.9);
Tailwind
colors: {
  custom: {
    50: '#7067a1',
    500: '#2f2f7a',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f7a;
$custom-light: #7067a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f7a",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 240,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35296,
    "c": 0.12445,
    "h": 277.9
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#2F2F7A
secondary
#A9A95C
accent
#D454D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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