#2D31CF#2D31CF

#2D31CF is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 43.9% C 0.233 H 270.7°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#2D31CF
RGBrgb(45, 49, 207)
HSLhsl(239, 64%, 49%)
HSVhsv(239, 78%, 81%)
CMYKcmyk(78.3%, 76.3%, 0%, 18.8%)
CIE-LABlab(32.39, 51.92, -80.28)
CIE-LCHlch(32.39, 95.61, 302.89°)
OKLaboklab(43.93% 0.0027 -0.2325)
OKLCHoklch(43.93% 0.233 270.7)
XYZxyz(13.4392, 7.2580, 59.7120)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D31CF #CFCB2D
analogous
#2D82CF #2D31CF #7A2DCF
triadic
#2D31CF #CF2D31 #31CF2D
tetradic
#2D31CF #CF2D82 #CFCB2D #2DCF7A
square
#2D31CF #CF2D82 #CFCB2D #2DCF7A
split-complementary
#2D31CF #CF7A2D #82CF2D
monochromatic
#17196A #22259D #2D31CF #5D60DC #9092E7

Accessibility & contrast

On white

8.56
#2D31CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2D31CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D31CF
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D31CF#FFFFFF#000000##FFFFFF
##2D31CF1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D3
Deuteranopia (green-blind)
#0044CC
Tritanopia (blue-blind)
#00617F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2d31cf;
/* rgb */ color: rgb(45, 49, 207);
/* oklch */ color: oklch(43.9% 0.233 270.7);
Tailwind
colors: {
  custom: {
    50: '#826cdf',
    500: '#2d31cf',
    950: '#000000',
  },
}
SCSS
$custom: #2d31cf;
$custom-light: #826cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d31cf",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 238.519,
    "s": 64.286,
    "l": 49.412
  },
  "oklch": {
    "l": 0.43928,
    "c": 0.2325,
    "h": 270.7
  },
  "luminance": 0.0726
}

Semantic roles & 50–950 ramp

primary
#2D31CF
secondary
#D1CF87
accent
#E341E7
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #2D31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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