#2F319D#2F319D

#2F319D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.170 H 274.3°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2F319D
RGBrgb(47, 49, 157)
HSLhsl(239, 54%, 40%)
HSVhsv(239, 70%, 62%)
CMYKcmyk(70.1%, 68.8%, 0%, 38.4%)
CIE-LABlab(27.39, 35.27, -58.79)
CIE-LCHlch(27.39, 68.56, 300.96°)
OKLaboklab(38.87% 0.0127 -0.1699)
OKLCHoklch(38.87% 0.17 274.3)
XYZxyz(8.3544, 5.2345, 32.4618)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F319D #9D9B2F
analogous
#2F689D #2F319D #642F9D
triadic
#2F319D #9D2F31 #319D2F
tetradic
#2F319D #9D2F68 #9D9B2F #2F9D64
square
#2F319D #9D2F68 #9D9B2F #2F9D64
split-complementary
#2F319D #9D642F #689D2F
monochromatic
#13143F #21226E #2F319D #4345C7 #7273D5

Accessibility & contrast

On white

10.26
#2F319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F319D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F319D
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F319D#FFFFFF#000000##FFFFFF
##2F319D1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f319d;
/* rgb */ color: rgb(47, 49, 157);
/* oklch */ color: oklch(38.9% 0.170 274.3);
Tailwind
colors: {
  custom: {
    50: '#776abb',
    500: '#2f319d',
    950: '#000000',
  },
}
SCSS
$custom: #2f319d;
$custom-light: #776abb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f319d",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 238.909,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.3887,
    "c": 0.17034,
    "h": 274.3
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#2F319D
secondary
#BCBB6B
accent
#DB4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F319D

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

Preview Lab → · Contrast checker → · Palette generator →

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