#2F54D3#2F54D3

#2F54D3 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.1% C 0.200 H 266.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#2F54D3
RGBrgb(47, 84, 211)
HSLhsl(226, 65%, 51%)
HSVhsv(226, 78%, 83%)
CMYKcmyk(77.7%, 60.2%, 0%, 17.3%)
CIE-LABlab(40.65, 32.46, -69.00)
CIE-LCHlch(40.65, 76.25, 295.19°)
OKLaboklab(50.06% -0.0123 -0.1995)
OKLCHoklch(50.06% 0.2 266.5)
XYZxyz(16.0964, 11.6463, 63.0150)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54D3 #D3AE2F
analogous
#2FA6D3 #2F54D3 #5C2FD3
triadic
#2F54D3 #D32F54 #54D32F
tetradic
#2F54D3 #D32FA6 #D3AE2F #2FD35C
square
#2F54D3 #D32FA6 #D3AE2F #2FD35C
split-complementary
#2F54D3 #D35C2F #A6D32F
monochromatic
#182C70 #223FA2 #2F54D3 #627EDE #94A7E8

Accessibility & contrast

On white

6.31
#2F54D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2F54D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54D3
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54D3#FFFFFF#000000##FFFFFF
##2F54D31.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D7
Deuteranopia (green-blind)
#0058D1
Tritanopia (blue-blind)
#00758B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f54d3;
/* rgb */ color: rgb(47, 84, 211);
/* oklch */ color: oklch(50.1% 0.200 266.5);
Tailwind
colors: {
  custom: {
    50: '#8183e1',
    500: '#2f54d3',
    950: '#000000',
  },
}
SCSS
$custom: #2f54d3;
$custom-light: #8183e1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54d3",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 211
  },
  "hsl": {
    "h": 226.463,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50063,
    "c": 0.19985,
    "h": 266.5
  },
  "luminance": 0.11648
}

Semantic roles & 50–950 ramp

primary
#2F54D3
secondary
#D3C38A
accent
#C240E8
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #2F54D3

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

Preview Lab → · Contrast checker → · Palette generator →

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