#2F54B2#2F54B2

#2F54B2 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.4% C 0.156 H 264.8°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2F54B2
RGBrgb(47, 84, 178)
HSLhsl(223, 58%, 44%)
HSVhsv(223, 74%, 70%)
CMYKcmyk(73.6%, 52.8%, 0%, 30.2%)
CIE-LABlab(38.12, 20.13, -53.89)
CIE-LCHlch(38.12, 57.53, 290.48°)
OKLaboklab(47.38% -0.014 -0.1551)
OKLCHoklch(47.38% 0.156 264.8)
XYZxyz(12.3757, 10.1580, 43.4193)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54B2 #B28D2F
analogous
#2F96B2 #2F54B2 #4B2FB2
triadic
#2F54B2 #B22F54 #54B22F
tetradic
#2F54B2 #B22F96 #B28D2F #2FB24B
square
#2F54B2 #B22F96 #B28D2F #2FB24B
split-complementary
#2F54B2 #B24B2F #96B22F
monochromatic
#152651 #223D82 #2F54B2 #4E73D0 #7E99DD

Accessibility & contrast

On white

6.93
#2F54B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2F54B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54B2
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54B2#FFFFFF#000000##FFFFFF
##2F54B21.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1360B5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f54b2;
/* rgb */ color: rgb(47, 84, 178);
/* oklch */ color: oklch(47.4% 0.156 264.8);
Tailwind
colors: {
  custom: {
    50: '#7983ca',
    500: '#2f54b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f54b2;
$custom-light: #7983ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54b2",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 223.053,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47376,
    "c": 0.15571,
    "h": 264.8
  },
  "luminance": 0.10159
}

Semantic roles & 50–950 ramp

primary
#2F54B2
secondary
#C6B077
accent
#B646E1
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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