#2F54C2#2F54C2

#2F54C2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.6% C 0.177 H 265.9°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#2F54C2
RGBrgb(47, 84, 194)
HSLhsl(225, 61%, 47%)
HSVhsv(225, 76%, 76%)
CMYKcmyk(75.8%, 56.7%, 0%, 23.9%)
CIE-LABlab(39.31, 26.15, -61.35)
CIE-LCHlch(39.31, 66.69, 293.08°)
OKLaboklab(48.64% -0.0128 -0.177)
OKLCHoklch(48.64% 0.177 265.9)
XYZxyz(14.0768, 10.8385, 52.3786)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54C2 #C29D2F
analogous
#2F9EC2 #2F54C2 #542FC2
triadic
#2F54C2 #C22F54 #54C22F
tetradic
#2F54C2 #C22F9E #C29D2F #2FC254
square
#2F54C2 #C22F9E #C29D2F #2FC254
split-complementary
#2F54C2 #C2542F #9EC22F
monochromatic
#17295F #233F91 #2F54C2 #5878D6 #899FE2

Accessibility & contrast

On white

6.63
#2F54C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#2F54C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54C2
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54C2#FFFFFF#000000##FFFFFF
##2F54C21.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#006F83
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f54c2;
/* rgb */ color: rgb(47, 84, 194);
/* oklch */ color: oklch(48.6% 0.177 265.9);
Tailwind
colors: {
  custom: {
    50: '#7d83d5',
    500: '#2f54c2',
    950: '#000000',
  },
}
SCSS
$custom: #2f54c2;
$custom-light: #7d83d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54c2",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 194
  },
  "hsl": {
    "h": 224.898,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.48642,
    "c": 0.17748,
    "h": 265.9
  },
  "luminance": 0.1084
}

Semantic roles & 50–950 ramp

primary
#2F54C2
secondary
#CCB981
accent
#BC44E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F54C2

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

Preview Lab → · Contrast checker → · Palette generator →

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