#2F5DDA#2F5DDA

#2F5DDA is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.4% C 0.198 H 264.9°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#2F5DDA
RGBrgb(47, 93, 218)
HSLhsl(224, 70%, 52%)
HSVhsv(224, 78%, 85%)
CMYKcmyk(78.4%, 57.3%, 0%, 14.5%)
CIE-LABlab(43.50, 29.28, -68.36)
CIE-LCHlch(43.50, 74.37, 293.18°)
OKLaboklab(52.36% -0.0177 -0.1975)
OKLCHoklch(52.36% 0.198 264.9)
XYZxyz(17.7370, 13.4929, 67.9857)
Luminance0.1349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DDA #DAAC2F
analogous
#2FB2DA #2F5DDA #572FDA
triadic
#2F5DDA #DA2F5D #5DDA2F
tetradic
#2F5DDA #DA2FB2 #DAAC2F #2FDA57
square
#2F5DDA #DA2FB2 #DAAC2F #2FDA57
split-complementary
#2F5DDA #DA572F #B2DA2F
monochromatic
#163079 #1F45AD #2F5DDA #6385E3 #97AEEC

Accessibility & contrast

On white

5.68
#2F5DDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#2F5DDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DDA
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DDA#FFFFFF#000000##FFFFFF
##2F5DDA1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDE
Deuteranopia (green-blind)
#005FD8
Tritanopia (blue-blind)
#007C92
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2f5dda;
/* rgb */ color: rgb(47, 93, 218);
/* oklch */ color: oklch(52.4% 0.198 264.9);
Tailwind
colors: {
  custom: {
    50: '#828ae6',
    500: '#2f5dda',
    950: '#000000',
  },
}
SCSS
$custom: #2f5dda;
$custom-light: #828ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5dda",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 218
  },
  "hsl": {
    "h": 223.86,
    "s": 69.796,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52364,
    "c": 0.19827,
    "h": 264.9
  },
  "luminance": 0.13495
}

Semantic roles & 50–950 ramp

primary
#2F5DDA
secondary
#D8C48D
accent
#BD3BED
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0C0B16
muted
#7D7C84

Preview Lab

Preview with #2F5DDA

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

Preview Lab → · Contrast checker → · Palette generator →

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