#2F2F9E#2F2F9E

#2F2F9E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.174 H 274.6°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#2F2F9E
RGBrgb(47, 47, 158)
HSLhsl(240, 54%, 40%)
HSVhsv(240, 70%, 62%)
CMYKcmyk(70.3%, 70.3%, 0%, 38%)
CIE-LABlab(27.03, 36.86, -59.99)
CIE-LCHlch(27.03, 70.41, 301.57°)
OKLaboklab(38.64% 0.014 -0.1734)
OKLCHoklch(38.64% 0.174 274.6)
XYZxyz(8.3583, 5.1052, 32.8860)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F9E #9E9E2F
analogous
#2F669E #2F2F9E #662F9E
triadic
#2F2F9E #9E2F2F #2F9E2F
tetradic
#2F2F9E #9E2F66 #9E9E2F #2F9E66
square
#2F2F9E #9E2F66 #9E9E2F #2F9E66
split-complementary
#2F2F9E #9E662F #669E2F
monochromatic
#131340 #21216F #2F2F9E #4343C7 #7272D5

Accessibility & contrast

On white

10.39
#2F2F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F2F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F9E
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F9E#FFFFFF#000000##FFFFFF
##2F2F9E1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2f9e;
/* rgb */ color: rgb(47, 47, 158);
/* oklch */ color: oklch(38.6% 0.174 274.6);
Tailwind
colors: {
  custom: {
    50: '#7868bc',
    500: '#2f2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f9e;
$custom-light: #7868bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f9e",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 240,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38639,
    "c": 0.17393,
    "h": 274.6
  },
  "luminance": 0.05106
}

Semantic roles & 50–950 ramp

primary
#2F2F9E
secondary
#BDBD6C
accent
#DE4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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