#2F319B#2F319B

#2F319B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.168 H 274.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#2F319B
RGBrgb(47, 49, 155)
HSLhsl(239, 53%, 40%)
HSVhsv(239, 70%, 61%)
CMYKcmyk(69.7%, 68.4%, 0%, 39.2%)
CIE-LABlab(27.20, 34.57, -57.88)
CIE-LCHlch(27.20, 67.42, 300.85°)
OKLaboklab(38.68% 0.013 -0.1672)
OKLCHoklch(38.68% 0.168 274.4)
XYZxyz(8.1850, 5.1668, 31.5699)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F319B #9B992F
analogous
#2F679B #2F319B #632F9B
triadic
#2F319B #9B2F31 #319B2F
tetradic
#2F319B #9B2F67 #9B992F #2F9B63
square
#2F319B #9B2F67 #9B992F #2F9B63
split-complementary
#2F319B #9B632F #679B2F
monochromatic
#13133D #21226C #2F319B #4244C6 #7172D4

Accessibility & contrast

On white

10.33
#2F319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F319B
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F319B#FFFFFF#000000##FFFFFF
##2F319B1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f319b;
/* rgb */ color: rgb(47, 49, 155);
/* oklch */ color: oklch(38.7% 0.168 274.4);
Tailwind
colors: {
  custom: {
    50: '#7769b9',
    500: '#2f319b',
    950: '#000000',
  },
}
SCSS
$custom: #2f319b;
$custom-light: #7769b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f319b",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 238.889,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38677,
    "c": 0.16769,
    "h": 274.4
  },
  "luminance": 0.05168
}

Semantic roles & 50–950 ramp

primary
#2F319B
secondary
#BBBA6A
accent
#DA4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F319B

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

Preview Lab → · Contrast checker → · Palette generator →

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