#2F4BEE#2F4BEE

#2F4BEE is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.0% C 0.243 H 267.9°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#2F4BEE
RGBrgb(47, 75, 238)
HSLhsl(231, 85%, 56%)
HSVhsv(231, 80%, 93%)
CMYKcmyk(80.3%, 68.5%, 0%, 6.7%)
CIE-LABlab(40.91, 47.65, -83.95)
CIE-LCHlch(40.91, 96.53, 299.58°)
OKLaboklab(50.98% -0.0089 -0.2432)
OKLCHoklch(50.98% 0.243 267.9)
XYZxyz(19.1156, 11.8073, 82.1439)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4BEE #EED22F
analogous
#2FAAEE #2F4BEE #722FEE
triadic
#2F4BEE #EE2F4B #4BEE2F
tetradic
#2F4BEE #EE2FAA #EED22F #2FEE72
square
#2F4BEE #EE2FAA #EED22F #2FEE72
split-complementary
#2F4BEE #EE722F #AAEE2F
monochromatic
#0C2196 #112DCF #2F4BEE #687CF3 #A0ADF7

Accessibility & contrast

On white

6.25
#2F4BEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#2F4BEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F4BEE
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4BEE#FFFFFF#000000##FFFFFF
##2F4BEE1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF3
Deuteranopia (green-blind)
#0057EB
Tritanopia (blue-blind)
#007897
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f4bee;
/* rgb */ color: rgb(47, 75, 238);
/* oklch */ color: oklch(51.0% 0.243 267.9);
Tailwind
colors: {
  custom: {
    50: '#887ef5',
    500: '#2f4bee',
    950: '#000000',
  },
}
SCSS
$custom: #2f4bee;
$custom-light: #887ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4bee",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 238
  },
  "hsl": {
    "h": 231.204,
    "s": 84.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50978,
    "c": 0.24341,
    "h": 267.9
  },
  "luminance": 0.1181
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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