#2F31CA#2F31CA

#2F31CA is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.5% C 0.226 H 271.4°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#2F31CA
RGBrgb(47, 49, 202)
HSLhsl(239, 62%, 49%)
HSVhsv(239, 77%, 79%)
CMYKcmyk(76.7%, 75.7%, 0%, 20.8%)
CIE-LABlab(31.95, 50.45, -78.09)
CIE-LCHlch(31.95, 92.96, 302.86°)
OKLaboklab(43.49% 0.0057 -0.2261)
OKLCHoklch(43.49% 0.226 271.4)
XYZxyz(12.9277, 7.0638, 56.5478)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31CA #CAC82F
analogous
#2F7FCA #2F31CA #7B2FCA
triadic
#2F31CA #CA2F31 #31CA2F
tetradic
#2F31CA #CA2F7F #CAC82F #2FCA7B
square
#2F31CA #CA2F7F #CAC82F #2FCA7B
split-complementary
#2F31CA #CA7B2F #7FCA2F
monochromatic
#181967 #232598 #2F31CA #5D5FD9 #8F90E5

Accessibility & contrast

On white

8.70
#2F31CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2F31CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31CA
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31CA#FFFFFF#000000##FFFFFF
##2F31CA1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CE
Deuteranopia (green-blind)
#0043C7
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f31ca;
/* rgb */ color: rgb(47, 49, 202);
/* oklch */ color: oklch(43.5% 0.226 271.4);
Tailwind
colors: {
  custom: {
    50: '#826bdc',
    500: '#2f31ca',
    950: '#000000',
  },
}
SCSS
$custom: #2f31ca;
$custom-light: #826bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31ca",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 239.226,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4349,
    "c": 0.22615,
    "h": 271.4
  },
  "luminance": 0.07065
}

Semantic roles & 50–950 ramp

primary
#2F31CA
secondary
#CFCE86
accent
#E342E5
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2F31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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