#2F5CDA#2F5CDA

#2F5CDA is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.2% C 0.199 H 265.1°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#2F5CDA
RGBrgb(47, 92, 218)
HSLhsl(224, 70%, 52%)
HSVhsv(224, 78%, 85%)
CMYKcmyk(78.4%, 57.8%, 0%, 14.5%)
CIE-LABlab(43.24, 29.92, -68.78)
CIE-LCHlch(43.24, 75.01, 293.51°)
OKLaboklab(52.17% -0.0171 -0.1987)
OKLCHoklch(52.17% 0.199 265.1)
XYZxyz(17.6498, 13.3185, 67.9566)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CDA #DAAD2F
analogous
#2FB1DA #2F5CDA #582FDA
triadic
#2F5CDA #DA2F5C #5CDA2F
tetradic
#2F5CDA #DA2FB1 #DAAD2F #2FDA58
square
#2F5CDA #DA2FB1 #DAAD2F #2FDA58
split-complementary
#2F5CDA #DA582F #B1DA2F
monochromatic
#163079 #1F44AD #2F5CDA #6385E3 #97ADEC

Accessibility & contrast

On white

5.73
#2F5CDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#2F5CDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CDA
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CDA#FFFFFF#000000##FFFFFF
##2F5CDA1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDE
Deuteranopia (green-blind)
#005ED8
Tritanopia (blue-blind)
#007C92
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2f5cda;
/* rgb */ color: rgb(47, 92, 218);
/* oklch */ color: oklch(52.2% 0.199 265.1);
Tailwind
colors: {
  custom: {
    50: '#8289e6',
    500: '#2f5cda',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cda;
$custom-light: #8289e6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cda",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 218
  },
  "hsl": {
    "h": 224.211,
    "s": 69.796,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52171,
    "c": 0.19946,
    "h": 265.1
  },
  "luminance": 0.13321
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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