#2F5CE2#2F5CE2

#2F5CE2 is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 52.8% C 0.210 H 265.4°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#2F5CE2
RGBrgb(47, 92, 226)
HSLhsl(225, 76%, 54%)
HSVhsv(225, 79%, 89%)
CMYKcmyk(79.2%, 59.3%, 0%, 11.4%)
CIE-LABlab(43.87, 32.87, -72.31)
CIE-LCHlch(43.87, 79.42, 294.44°)
OKLaboklab(52.84% -0.0169 -0.2091)
OKLCHoklch(52.84% 0.21 265.4)
XYZxyz(18.7221, 13.7474, 73.6035)
Luminance0.1375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CE2 #E2B52F
analogous
#2FB5E2 #2F5CE2 #5B2FE2
triadic
#2F5CE2 #E22F5C #5CE22F
tetradic
#2F5CE2 #E22FB5 #E2B52F #2FE25B
square
#2F5CE2 #E22FB5 #E2B52F #2FE25B
split-complementary
#2F5CE2 #E25B2F #B5E22F
monochromatic
#122F84 #1A42BA #2F5CE2 #6586E9 #9AB0F1

Accessibility & contrast

On white

5.60
#2F5CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#2F5CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CE2
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CE2#FFFFFF#000000##FFFFFF
##2F5CE21.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E6
Deuteranopia (green-blind)
#0060DF
Tritanopia (blue-blind)
#007E96
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2f5ce2;
/* rgb */ color: rgb(47, 92, 226);
/* oklch */ color: oklch(52.8% 0.210 265.4);
Tailwind
colors: {
  custom: {
    50: '#8489ec',
    500: '#2f5ce2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ce2;
$custom-light: #8489ec;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ce2",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 226
  },
  "hsl": {
    "h": 224.916,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52838,
    "c": 0.20974,
    "h": 265.4
  },
  "luminance": 0.1375
}

Semantic roles & 50–950 ramp

primary
#2F5CE2
secondary
#DDC990
accent
#C336F2
background
#F9F8FE
surface
#F1F0FD
border
#CBCBD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #2F5CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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