#2F319A#2F319A

#2F319A is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.166 H 274.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#2F319A
RGBrgb(47, 49, 154)
HSLhsl(239, 53%, 39%)
HSVhsv(239, 69%, 60%)
CMYKcmyk(69.5%, 68.2%, 0%, 39.6%)
CIE-LABlab(27.11, 34.22, -57.43)
CIE-LCHlch(27.11, 66.85, 300.79°)
OKLaboklab(38.58% 0.0131 -0.1658)
OKLCHoklch(38.58% 0.166 274.5)
XYZxyz(8.1014, 5.1333, 31.1295)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F319A #9A982F
analogous
#2F669A #2F319A #632F9A
triadic
#2F319A #9A2F31 #319A2F
tetradic
#2F319A #9A2F66 #9A982F #2F9A63
square
#2F319A #9A2F66 #9A982F #2F9A63
split-complementary
#2F319A #9A632F #669A2F
monochromatic
#12133C #21226B #2F319A #4144C5 #7072D3

Accessibility & contrast

On white

10.36
#2F319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F319A
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F319A#FFFFFF#000000##FFFFFF
##2F319A1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f319a;
/* rgb */ color: rgb(47, 49, 154);
/* oklch */ color: oklch(38.6% 0.166 274.5);
Tailwind
colors: {
  custom: {
    50: '#7769b9',
    500: '#2f319a',
    950: '#000000',
  },
}
SCSS
$custom: #2f319a;
$custom-light: #7769b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f319a",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 238.879,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3858,
    "c": 0.16637,
    "h": 274.5
  },
  "luminance": 0.05134
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F319A

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

Preview Lab → · Contrast checker → · Palette generator →

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