#2F319E#2F319E

#2F319E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.172 H 274.2°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#2F319E
RGBrgb(47, 49, 158)
HSLhsl(239, 54%, 40%)
HSVhsv(239, 70%, 62%)
CMYKcmyk(70.3%, 69%, 0%, 38%)
CIE-LABlab(27.49, 35.62, -59.25)
CIE-LCHlch(27.49, 69.13, 301.02°)
OKLaboklab(38.97% 0.0126 -0.1712)
OKLCHoklch(38.97% 0.172 274.2)
XYZxyz(8.4401, 5.2688, 32.9133)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F319E #9E9C2F
analogous
#2F689E #2F319E #642F9E
triadic
#2F319E #9E2F31 #319E2F
tetradic
#2F319E #9E2F68 #9E9C2F #2F9E64
square
#2F319E #9E2F68 #9E9C2F #2F9E64
split-complementary
#2F319E #9E642F #689E2F
monochromatic
#131440 #21226F #2F319E #4345C7 #7274D5

Accessibility & contrast

On white

10.22
#2F319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F319E
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F319E#FFFFFF#000000##FFFFFF
##2F319E1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f319e;
/* rgb */ color: rgb(47, 49, 158);
/* oklch */ color: oklch(39.0% 0.172 274.2);
Tailwind
colors: {
  custom: {
    50: '#776abc',
    500: '#2f319e',
    950: '#000000',
  },
}
SCSS
$custom: #2f319e;
$custom-light: #776abc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f319e",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 238.919,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38967,
    "c": 0.17164,
    "h": 274.2
  },
  "luminance": 0.0527
}

Semantic roles & 50–950 ramp

primary
#2F319E
secondary
#BDBB6C
accent
#DB4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F319E

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

Preview Lab → · Contrast checker → · Palette generator →

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