#2F45BF#2F45BF

#2F45BF is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.5% C 0.192 H 269.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#2F45BF
RGBrgb(47, 69, 191)
HSLhsl(231, 61%, 47%)
HSVhsv(231, 75%, 75%)
CMYKcmyk(75.4%, 63.9%, 0%, 25.1%)
CIE-LABlab(35.24, 34.75, -66.23)
CIE-LCHlch(35.24, 74.79, 297.68°)
OKLaboklab(45.54% -0.0028 -0.1915)
OKLCHoklch(45.54% 0.192 269.2)
XYZxyz(12.7011, 8.6208, 50.2747)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45BF #BFA92F
analogous
#2F8DBF #2F45BF #612FBF
triadic
#2F45BF #BF2F45 #45BF2F
tetradic
#2F45BF #BF2F8D #BFA92F #2FBF61
square
#2F45BF #BF2F8D #BFA92F #2FBF61
split-complementary
#2F45BF #BF612F #8DBF2F
monochromatic
#17225D #23338E #2F45BF #5669D5 #8795E1

Accessibility & contrast

On white

7.71
#2F45BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2F45BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45BF
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45BF#FFFFFF#000000##FFFFFF
##2F45BF1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#004CBD
Tritanopia (blue-blind)
#00657B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f45bf;
/* rgb */ color: rgb(47, 69, 191);
/* oklch */ color: oklch(45.5% 0.192 269.2);
Tailwind
colors: {
  custom: {
    50: '#7d78d3',
    500: '#2f45bf',
    950: '#000000',
  },
}
SCSS
$custom: #2f45bf;
$custom-light: #7d78d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45bf",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 230.833,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45544,
    "c": 0.19154,
    "h": 269.2
  },
  "luminance": 0.08622
}

Semantic roles & 50–950 ramp

primary
#2F45BF
secondary
#CBBF7F
accent
#CB44E4
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2F45BF

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

Preview Lab → · Contrast checker → · Palette generator →

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