#2F5FCD#2F5FCD

#2F5FCD is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.7% C 0.179 H 263.6°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#2F5FCD
RGBrgb(47, 95, 205)
HSLhsl(222, 63%, 49%)
HSVhsv(222, 77%, 80%)
CMYKcmyk(77.1%, 53.7%, 0%, 19.6%)
CIE-LABlab(43.06, 23.13, -61.63)
CIE-LCHlch(43.06, 65.83, 290.57°)
OKLaboklab(51.73% -0.02 -0.1777)
OKLCHoklch(51.73% 0.179 263.6)
XYZxyz(16.2800, 13.1947, 59.4346)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FCD #CD9D2F
analogous
#2FAECD #2F5FCD #4E2FCD
triadic
#2F5FCD #CD2F5F #5FCD2F
tetradic
#2F5FCD #CD2FAE #CD9D2F #2FCD4E
square
#2F5FCD #CD2FAE #CD9D2F #2FCD4E
split-complementary
#2F5FCD #CD4E2F #AECD2F
monochromatic
#183169 #24489B #2F5FCD #5F84DA #91ABE6

Accessibility & contrast

On white

5.77
#2F5FCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#2F5FCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FCD
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FCD#FFFFFF#000000##FFFFFF
##2F5FCD1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#005FCB
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2f5fcd;
/* rgb */ color: rgb(47, 95, 205);
/* oklch */ color: oklch(51.7% 0.179 263.6);
Tailwind
colors: {
  custom: {
    50: '#7f8bdd',
    500: '#2f5fcd',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fcd;
$custom-light: #7f8bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fcd",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 205
  },
  "hsl": {
    "h": 221.772,
    "s": 62.698,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51727,
    "c": 0.17878,
    "h": 263.6
  },
  "luminance": 0.13197
}

Semantic roles & 50–950 ramp

primary
#2F5FCD
secondary
#D0BA87
accent
#B442E6
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #2F5FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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