#2F4CBC#2F4CBC

#2F4CBC is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.6% C 0.179 H 267.6°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#2F4CBC
RGBrgb(47, 76, 188)
HSLhsl(228, 60%, 46%)
HSVhsv(228, 75%, 74%)
CMYKcmyk(75%, 59.6%, 0%, 26.3%)
CIE-LABlab(36.75, 29.13, -62.01)
CIE-LCHlch(36.75, 68.51, 295.16°)
OKLaboklab(46.58% -0.0074 -0.1791)
OKLCHoklch(46.58% 0.179 267.6)
XYZxyz(12.8307, 9.4027, 48.7059)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CBC #BC9F2F
analogous
#2F92BC #2F4CBC #592FBC
triadic
#2F4CBC #BC2F4C #4CBC2F
tetradic
#2F4CBC #BC2F92 #BC9F2F #2FBC59
square
#2F4CBC #BC2F92 #BC9F2F #2FBC59
split-complementary
#2F4CBC #BC592F #92BC2F
monochromatic
#17245A #23388B #2F4CBC #546ED4 #8598E0

Accessibility & contrast

On white

7.29
#2F4CBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2F4CBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4CBC
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CBC#FFFFFF#000000##FFFFFF
##2F4CBC1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f4cbc;
/* rgb */ color: rgb(47, 76, 188);
/* oklch */ color: oklch(46.6% 0.179 267.6);
Tailwind
colors: {
  custom: {
    50: '#7c7dd1',
    500: '#2f4cbc',
    950: '#000000',
  },
}
SCSS
$custom: #2f4cbc;
$custom-light: #7c7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4cbc",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 188
  },
  "hsl": {
    "h": 227.66,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4658,
    "c": 0.17922,
    "h": 267.6
  },
  "luminance": 0.09404
}

Semantic roles & 50–950 ramp

primary
#2F4CBC
secondary
#CABA7D
accent
#C345E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2F4CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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