#2F5AE2#2F5AE2

#2F5AE2 is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 52.5% C 0.212 H 265.8°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#2F5AE2
RGBrgb(47, 90, 226)
HSLhsl(226, 76%, 54%)
HSVhsv(226, 79%, 89%)
CMYKcmyk(79.2%, 60.2%, 0%, 11.4%)
CIE-LABlab(43.37, 34.14, -73.12)
CIE-LCHlch(43.37, 80.70, 295.02°)
OKLaboklab(52.47% -0.0157 -0.2115)
OKLCHoklch(52.47% 0.212 265.8)
XYZxyz(18.5511, 13.4055, 73.5466)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AE2 #E2B72F
analogous
#2FB3E2 #2F5AE2 #5E2FE2
triadic
#2F5AE2 #E22F5A #5AE22F
tetradic
#2F5AE2 #E22FB3 #E2B72F #2FE25E
square
#2F5AE2 #E22FB3 #E2B72F #2FE25E
split-complementary
#2F5AE2 #E25E2F #B3E22F
monochromatic
#122E84 #1A40BA #2F5AE2 #6585E9 #9AAFF1

Accessibility & contrast

On white

5.70
#2F5AE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#2F5AE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AE2
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AE2#FFFFFF#000000##FFFFFF
##2F5AE21.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE6
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#007D95
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2f5ae2;
/* rgb */ color: rgb(47, 90, 226);
/* oklch */ color: oklch(52.5% 0.212 265.8);
Tailwind
colors: {
  custom: {
    50: '#8488ec',
    500: '#2f5ae2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ae2;
$custom-light: #8488ec;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ae2",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 226
  },
  "hsl": {
    "h": 225.587,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52465,
    "c": 0.21206,
    "h": 265.8
  },
  "luminance": 0.13408
}

Semantic roles & 50–950 ramp

primary
#2F5AE2
secondary
#DDCA90
accent
#C536F2
background
#F9F8FE
surface
#F1EFFD
border
#CBCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #2F5AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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