#2F2F9F#2F2F9F

#2F2F9F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.175 H 274.5°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#2F2F9F
RGBrgb(47, 47, 159)
HSLhsl(240, 54%, 40%)
HSVhsv(240, 70%, 62%)
CMYKcmyk(70.4%, 70.4%, 0%, 37.6%)
CIE-LABlab(27.13, 37.21, -60.44)
CIE-LCHlch(27.13, 70.98, 301.62°)
OKLaboklab(38.74% 0.0138 -0.1747)
OKLCHoklch(38.74% 0.175 274.5)
XYZxyz(8.4447, 5.1398, 33.3412)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F9F #9F9F2F
analogous
#2F679F #2F2F9F #672F9F
triadic
#2F2F9F #9F2F2F #2F9F2F
tetradic
#2F2F9F #9F2F67 #9F9F2F #2F9F67
square
#2F2F9F #9F2F67 #9F9F2F #2F9F67
split-complementary
#2F2F9F #9F672F #679F2F
monochromatic
#131341 #212170 #2F2F9F #4444C8 #7373D6

Accessibility & contrast

On white

10.35
#2F2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F9F
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F9F#FFFFFF#000000##FFFFFF
##2F2F9F1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2f9f;
/* rgb */ color: rgb(47, 47, 159);
/* oklch */ color: oklch(38.7% 0.175 274.5);
Tailwind
colors: {
  custom: {
    50: '#7868bc',
    500: '#2f2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f9f;
$custom-light: #7868bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f9f",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 240,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38738,
    "c": 0.17523,
    "h": 274.5
  },
  "luminance": 0.05141
}

Semantic roles & 50–950 ramp

primary
#2F2F9F
secondary
#BDBD6D
accent
#DE4ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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