#2F5ED9#2F5ED9

#2F5ED9 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.5% C 0.196 H 264.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#2F5ED9
RGBrgb(47, 94, 217)
HSLhsl(223, 69%, 52%)
HSVhsv(223, 78%, 85%)
CMYKcmyk(78.3%, 56.7%, 0%, 14.9%)
CIE-LABlab(43.68, 28.26, -67.49)
CIE-LCHlch(43.68, 73.17, 292.72°)
OKLaboklab(52.48% -0.0184 -0.1949)
OKLCHoklch(52.48% 0.196 264.6)
XYZxyz(17.6949, 13.6174, 67.3280)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5ED9 #D9AA2F
analogous
#2FB3D9 #2F5ED9 #552FD9
triadic
#2F5ED9 #D92F5E #5ED92F
tetradic
#2F5ED9 #D92FB3 #D9AA2F #2FD955
square
#2F5ED9 #D92FB3 #D9AA2F #2FD955
split-complementary
#2F5ED9 #D9552F #B3D92F
monochromatic
#163178 #1F46AB #2F5ED9 #6386E2 #96AEEC

Accessibility & contrast

On white

5.64
#2F5ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#2F5ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5ED9
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5ED9#FFFFFF#000000##FFFFFF
##2F5ED91.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDD
Deuteranopia (green-blind)
#0060D7
Tritanopia (blue-blind)
#007D92
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2f5ed9;
/* rgb */ color: rgb(47, 94, 217);
/* oklch */ color: oklch(52.5% 0.196 264.6);
Tailwind
colors: {
  custom: {
    50: '#828be6',
    500: '#2f5ed9',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ed9;
$custom-light: #828be6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ed9",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 217
  },
  "hsl": {
    "h": 223.412,
    "s": 69.106,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52477,
    "c": 0.19578,
    "h": 264.6
  },
  "luminance": 0.13619
}

Semantic roles & 50–950 ramp

primary
#2F5ED9
secondary
#D7C38D
accent
#BB3CEC
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0C0B16
muted
#7D7C84

Preview Lab

Preview with #2F5ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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