#2F4CEE#2F4CEE

#2F4CEE is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.1% C 0.242 H 267.8°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#2F4CEE
RGBrgb(47, 76, 238)
HSLhsl(231, 85%, 56%)
HSVhsv(231, 80%, 93%)
CMYKcmyk(80.3%, 68.1%, 0%, 6.7%)
CIE-LABlab(41.13, 47.06, -83.59)
CIE-LCHlch(41.13, 95.93, 299.38°)
OKLaboklab(51.14% -0.0093 -0.2422)
OKLCHoklch(51.14% 0.242 267.8)
XYZxyz(19.1840, 11.9440, 82.1667)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CEE #EED12F
analogous
#2FABEE #2F4CEE #712FEE
triadic
#2F4CEE #EE2F4C #4CEE2F
tetradic
#2F4CEE #EE2FAB #EED12F #2FEE71
square
#2F4CEE #EE2FAB #EED12F #2FEE71
split-complementary
#2F4CEE #EE712F #ABEE2F
monochromatic
#0C2196 #112ECF #2F4CEE #687DF3 #A0ADF7

Accessibility & contrast

On white

6.20
#2F4CEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#2F4CEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F4CEE
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CEE#FFFFFF#000000##FFFFFF
##2F4CEE1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF3
Deuteranopia (green-blind)
#0058EB
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f4cee;
/* rgb */ color: rgb(47, 76, 238);
/* oklch */ color: oklch(51.1% 0.242 267.8);
Tailwind
colors: {
  custom: {
    50: '#887ef5',
    500: '#2f4cee',
    950: '#000000',
  },
}
SCSS
$custom: #2f4cee;
$custom-light: #887ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4cee",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 238
  },
  "hsl": {
    "h": 230.89,
    "s": 84.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51137,
    "c": 0.24237,
    "h": 267.8
  },
  "luminance": 0.11946
}

Semantic roles & 50–950 ramp

primary
#2F4CEE
secondary
#E4D895
accent
#DC2DFB
background
#F9F7FF
surface
#F2EEFF
border
#CCC9D7
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #2F4CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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