#2F2F8D#2F2F8D

#2F2F8D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.151 H 276.1°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2F2F8D
RGBrgb(47, 47, 141)
HSLhsl(240, 50%, 37%)
HSVhsv(240, 67%, 55%)
CMYKcmyk(66.7%, 66.7%, 0%, 44.7%)
CIE-LABlab(25.44, 30.90, -52.16)
CIE-LCHlch(25.44, 60.63, 300.65°)
OKLaboklab(37% 0.016 -0.1504)
OKLCHoklch(37% 0.151 276.1)
XYZxyz(6.9950, 4.5599, 25.7057)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F8D #8D8D2F
analogous
#2F5E8D #2F2F8D #5E2F8D
triadic
#2F2F8D #8D2F2F #2F8D2F
tetradic
#2F2F8D #8D2F5E #8D8D2F #2F8D5E
square
#2F2F8D #8D2F5E #8D8D2F #2F8D5E
split-complementary
#2F2F8D #8D5E2F #5E8D2F
monochromatic
#101031 #20205F #2F2F8D #3E3EBB #6969CD

Accessibility & contrast

On white

10.98
#2F2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F8D
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F8D#FFFFFF#000000##FFFFFF
##2F2F8D1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f2f8d;
/* rgb */ color: rgb(47, 47, 141);
/* oklch */ color: oklch(37.0% 0.151 276.1);
Tailwind
colors: {
  custom: {
    50: '#7468af',
    500: '#2f2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f8d;
$custom-light: #7468af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f8d",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 240,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37001,
    "c": 0.15128,
    "h": 276.1
  },
  "luminance": 0.0456
}

Semantic roles & 50–950 ramp

primary
#2F2F8D
secondary
#B4B464
accent
#DA4EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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