#2F40CE#2F40CE

#2F40CE is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.1% C 0.216 H 269.7°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#2F40CE
RGBrgb(47, 64, 206)
HSLhsl(234, 63%, 50%)
HSVhsv(234, 77%, 81%)
CMYKcmyk(77.2%, 68.9%, 0%, 19.2%)
CIE-LABlab(35.45, 43.18, -74.64)
CIE-LCHlch(35.45, 86.23, 300.05°)
OKLaboklab(46.11% -0.0012 -0.2161)
OKLCHoklch(46.11% 0.216 269.7)
XYZxyz(14.1424, 8.7258, 59.3194)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F40CE #CEBD2F
analogous
#2F90CE #2F40CE #6E2FCE
triadic
#2F40CE #CE2F40 #40CE2F
tetradic
#2F40CE #CE2F90 #CEBD2F #2FCE6E
square
#2F40CE #CE2F90 #CEBD2F #2FCE6E
split-complementary
#2F40CE #CE6E2F #90CE2F
monochromatic
#18216A #24319C #2F40CE #606DDB #919AE6

Accessibility & contrast

On white

7.65
#2F40CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2F40CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F40CE
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F40CE#FFFFFF#000000##FFFFFF
##2F40CE1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD2
Deuteranopia (green-blind)
#004CCB
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f40ce;
/* rgb */ color: rgb(47, 64, 206);
/* oklch */ color: oklch(46.1% 0.216 269.7);
Tailwind
colors: {
  custom: {
    50: '#8175de',
    500: '#2f40ce',
    950: '#000000',
  },
}
SCSS
$custom: #2f40ce;
$custom-light: #8175de;
$custom-dark: #000000;
JSON
{
  "hex": "#2f40ce",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 233.585,
    "s": 62.846,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46113,
    "c": 0.21611,
    "h": 269.7
  },
  "luminance": 0.08727
}

Semantic roles & 50–950 ramp

primary
#2F40CE
secondary
#D1C988
accent
#D442E6
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2F40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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