#2F4FF2#2F4FF2

#2F4FF2 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.0% C 0.244 H 267.5°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#2F4FF2
RGBrgb(47, 79, 242)
HSLhsl(230, 88%, 57%)
HSVhsv(230, 81%, 95%)
CMYKcmyk(80.6%, 67.4%, 0%, 5.1%)
CIE-LABlab(42.16, 46.65, -84.14)
CIE-LCHlch(42.16, 96.21, 299.00°)
OKLaboklab(52% -0.0108 -0.2438)
OKLCHoklch(52% 0.244 267.5)
XYZxyz(19.9897, 12.6047, 85.3666)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FF2 #F2D22F
analogous
#2FB0F2 #2F4FF2 #712FF2
triadic
#2F4FF2 #F22F4F #4FF22F
tetradic
#2F4FF2 #F22FB0 #F2D22F #2FF271
square
#2F4FF2 #F22FB0 #F2D22F #2FF271
split-complementary
#2F4FF2 #F2712F #B0F22F
monochromatic
#0A229D #0D2ED6 #2F4FF2 #6980F6 #A2B0F9

Accessibility & contrast

On white

5.96
#2F4FF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2F4FF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F4FF2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FF2#FFFFFF#000000##FFFFFF
##2F4FF21.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DF7
Deuteranopia (green-blind)
#005AEF
Tritanopia (blue-blind)
#007C9A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f4ff2;
/* rgb */ color: rgb(47, 79, 242);
/* oklch */ color: oklch(52.0% 0.244 267.5);
Tailwind
colors: {
  custom: {
    50: '#8980f8',
    500: '#2f4ff2',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ff2;
$custom-light: #8980f8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ff2",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 242
  },
  "hsl": {
    "h": 230.154,
    "s": 88.235,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52001,
    "c": 0.24403,
    "h": 267.5
  },
  "luminance": 0.12607
}

Semantic roles & 50–950 ramp

primary
#2F4FF2
secondary
#E6D997
accent
#DB29FE
background
#F9F7FF
surface
#F2EEFF
border
#CCC9D7
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #2F4FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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