#2F4CBD#2F4CBD

#2F4CBD is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.7% C 0.181 H 267.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2F4CBD
RGBrgb(47, 76, 189)
HSLhsl(228, 60%, 46%)
HSVhsv(228, 75%, 74%)
CMYKcmyk(75.1%, 59.8%, 0%, 25.9%)
CIE-LABlab(36.83, 29.50, -62.47)
CIE-LCHlch(36.83, 69.08, 295.28°)
OKLaboklab(46.67% -0.0074 -0.1804)
OKLCHoklch(46.67% 0.181 267.7)
XYZxyz(12.9388, 9.4459, 49.2756)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CBD #BDA02F
analogous
#2F93BD #2F4CBD #592FBD
triadic
#2F4CBD #BD2F4C #4CBD2F
tetradic
#2F4CBD #BD2F93 #BDA02F #2FBD59
square
#2F4CBD #BD2F93 #BDA02F #2FBD59
split-complementary
#2F4CBD #BD592F #93BD2F
monochromatic
#17255B #23388C #2F4CBD #556FD5 #8698E1

Accessibility & contrast

On white

7.27
#2F4CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2F4CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4CBD
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CBD#FFFFFF#000000##FFFFFF
##2F4CBD1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#0050BB
Tritanopia (blue-blind)
#00697D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f4cbd;
/* rgb */ color: rgb(47, 76, 189);
/* oklch */ color: oklch(46.7% 0.181 267.7);
Tailwind
colors: {
  custom: {
    50: '#7c7dd2',
    500: '#2f4cbd',
    950: '#000000',
  },
}
SCSS
$custom: #2f4cbd;
$custom-light: #7c7dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4cbd",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 189
  },
  "hsl": {
    "h": 227.746,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46666,
    "c": 0.18056,
    "h": 267.7
  },
  "luminance": 0.09447
}

Semantic roles & 50–950 ramp

primary
#2F4CBD
secondary
#CABB7E
accent
#C344E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2F4CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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