#2F54BE#2F54BE

#2F54BE is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.3% C 0.172 H 265.7°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#2F54BE
RGBrgb(47, 84, 190)
HSLhsl(224, 60%, 46%)
HSVhsv(224, 75%, 75%)
CMYKcmyk(75.3%, 55.8%, 0%, 25.5%)
CIE-LABlab(39.00, 24.65, -59.51)
CIE-LCHlch(39.00, 64.41, 292.50°)
OKLaboklab(48.32% -0.013 -0.1716)
OKLCHoklch(48.32% 0.172 265.7)
XYZxyz(13.6336, 10.6612, 50.0445)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54BE #BE992F
analogous
#2F9CBE #2F54BE #522FBE
triadic
#2F54BE #BE2F54 #54BE2F
tetradic
#2F54BE #BE2F9C #BE992F #2FBE52
square
#2F54BE #BE2F9C #BE992F #2FBE52
split-complementary
#2F54BE #BE522F #9CBE2F
monochromatic
#17295C #233E8D #2F54BE #5576D5 #869EE1

Accessibility & contrast

On white

6.70
#2F54BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2F54BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54BE
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54BE#FFFFFF#000000##FFFFFF
##2F54BE1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#0056BC
Tritanopia (blue-blind)
#006E81
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f54be;
/* rgb */ color: rgb(47, 84, 190);
/* oklch */ color: oklch(48.3% 0.172 265.7);
Tailwind
colors: {
  custom: {
    50: '#7c83d2',
    500: '#2f54be',
    950: '#000000',
  },
}
SCSS
$custom: #2f54be;
$custom-light: #7c83d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54be",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 190
  },
  "hsl": {
    "h": 224.476,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48319,
    "c": 0.1721,
    "h": 265.7
  },
  "luminance": 0.10663
}

Semantic roles & 50–950 ramp

primary
#2F54BE
secondary
#CBB77E
accent
#BA44E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F54BE

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

Preview Lab → · Contrast checker → · Palette generator →

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