#2F2F9D#2F2F9D

#2F2F9D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.173 H 274.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#2F2F9D
RGBrgb(47, 47, 157)
HSLhsl(240, 54%, 40%)
HSVhsv(240, 70%, 62%)
CMYKcmyk(70.1%, 70.1%, 0%, 38.4%)
CIE-LABlab(26.94, 36.52, -59.54)
CIE-LCHlch(26.94, 69.85, 301.52°)
OKLaboklab(38.54% 0.0141 -0.172)
OKLCHoklch(38.54% 0.173 274.7)
XYZxyz(8.2726, 5.0709, 32.4346)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F9D #9D9D2F
analogous
#2F669D #2F2F9D #662F9D
triadic
#2F2F9D #9D2F2F #2F9D2F
tetradic
#2F2F9D #9D2F66 #9D9D2F #2F9D66
square
#2F2F9D #9D2F66 #9D9D2F #2F9D66
split-complementary
#2F2F9D #9D662F #669D2F
monochromatic
#13133F #21216E #2F2F9D #4343C7 #7272D5

Accessibility & contrast

On white

10.42
#2F2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F2F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F9D
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F9D#FFFFFF#000000##FFFFFF
##2F2F9D1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2f9d;
/* rgb */ color: rgb(47, 47, 157);
/* oklch */ color: oklch(38.5% 0.173 274.7);
Tailwind
colors: {
  custom: {
    50: '#7768bb',
    500: '#2f2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f9d;
$custom-light: #7768bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f9d",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 240,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.3854,
    "c": 0.17263,
    "h": 274.7
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

primary
#2F2F9D
secondary
#BCBC6B
accent
#DD4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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