#2F319F#2F319F

#2F319F is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.173 H 274.1°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#2F319F
RGBrgb(47, 49, 159)
HSLhsl(239, 54%, 40%)
HSVhsv(239, 70%, 62%)
CMYKcmyk(70.4%, 69.2%, 0%, 37.6%)
CIE-LABlab(27.58, 35.97, -59.70)
CIE-LCHlch(27.58, 69.70, 301.07°)
OKLaboklab(39.07% 0.0125 -0.1725)
OKLCHoklch(39.07% 0.173 274.1)
XYZxyz(8.5265, 5.3034, 33.3685)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F319F #9F9D2F
analogous
#2F699F #2F319F #652F9F
triadic
#2F319F #9F2F31 #319F2F
tetradic
#2F319F #9F2F69 #9F9D2F #2F9F65
square
#2F319F #9F2F69 #9F9D2F #2F9F65
split-complementary
#2F319F #9F652F #699F2F
monochromatic
#131441 #212270 #2F319F #4446C8 #7375D6

Accessibility & contrast

On white

10.19
#2F319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F319F
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F319F#FFFFFF#000000##FFFFFF
##2F319F1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f319f;
/* rgb */ color: rgb(47, 49, 159);
/* oklch */ color: oklch(39.1% 0.173 274.1);
Tailwind
colors: {
  custom: {
    50: '#786abc',
    500: '#2f319f',
    950: '#000000',
  },
}
SCSS
$custom: #2f319f;
$custom-light: #786abc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f319f",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 238.929,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39065,
    "c": 0.17296,
    "h": 274.1
  },
  "luminance": 0.05304
}

Semantic roles & 50–950 ramp

primary
#2F319F
secondary
#BDBC6D
accent
#DB4ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F319F

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

Preview Lab → · Contrast checker → · Palette generator →

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