#2F319C#2F319C

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

Color values

HEX#2F319C
RGBrgb(47, 49, 156)
HSLhsl(239, 54%, 40%)
HSVhsv(239, 70%, 61%)
CMYKcmyk(69.9%, 68.6%, 0%, 38.8%)
CIE-LABlab(27.30, 34.92, -58.34)
CIE-LCHlch(27.30, 67.99, 300.91°)
OKLaboklab(38.77% 0.0129 -0.1685)
OKLCHoklch(38.77% 0.169 274.4)
XYZxyz(8.2694, 5.2005, 32.0140)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F319C #9C9A2F
analogous
#2F689C #2F319C #642F9C
triadic
#2F319C #9C2F31 #319C2F
tetradic
#2F319C #9C2F68 #9C9A2F #2F9C64
square
#2F319C #9C2F68 #9C9A2F #2F9C64
split-complementary
#2F319C #9C642F #689C2F
monochromatic
#13133E #21226D #2F319C #4245C6 #7173D4

Accessibility & contrast

On white

10.29
#2F319C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F319C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F319C
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F319C#FFFFFF#000000##FFFFFF
##2F319C1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f319c;
/* rgb */ color: rgb(47, 49, 156);
/* oklch */ color: oklch(38.8% 0.169 274.4);
Tailwind
colors: {
  custom: {
    50: '#776aba',
    500: '#2f319c',
    950: '#000000',
  },
}
SCSS
$custom: #2f319c;
$custom-light: #776aba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f319c",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 238.899,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38773,
    "c": 0.16902,
    "h": 274.4
  },
  "luminance": 0.05201
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F319C

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

Preview Lab → · Contrast checker → · Palette generator →

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