#2F45BC#2F45BC

#2F45BC is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.3% C 0.188 H 269.2°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#2F45BC
RGBrgb(47, 69, 188)
HSLhsl(231, 60%, 46%)
HSVhsv(231, 75%, 74%)
CMYKcmyk(75%, 63.3%, 0%, 26.3%)
CIE-LABlab(34.98, 33.66, -64.90)
CIE-LCHlch(34.98, 73.11, 297.41°)
OKLaboklab(45.27% -0.0027 -0.1876)
OKLCHoklch(45.27% 0.188 269.2)
XYZxyz(12.3744, 8.4901, 48.5538)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45BC #BCA62F
analogous
#2F8BBC #2F45BC #5F2FBC
triadic
#2F45BC #BC2F45 #45BC2F
tetradic
#2F45BC #BC2F8B #BCA62F #2FBC5F
square
#2F45BC #BC2F8B #BCA62F #2FBC5F
split-complementary
#2F45BC #BC5F2F #8BBC2F
monochromatic
#17215A #23338B #2F45BC #5468D4 #8593E0

Accessibility & contrast

On white

7.78
#2F45BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2F45BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45BC
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45BC#FFFFFF#000000##FFFFFF
##2F45BC1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#00647A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f45bc;
/* rgb */ color: rgb(47, 69, 188);
/* oklch */ color: oklch(45.3% 0.188 269.2);
Tailwind
colors: {
  custom: {
    50: '#7d78d1',
    500: '#2f45bc',
    950: '#000000',
  },
}
SCSS
$custom: #2f45bc;
$custom-light: #7d78d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45bc",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 230.638,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45273,
    "c": 0.18763,
    "h": 269.2
  },
  "luminance": 0.08491
}

Semantic roles & 50–950 ramp

primary
#2F45BC
secondary
#CABE7D
accent
#CA45E3
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2F45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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