#2F4EBD#2F4EBD

#2F4EBD is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.1% C 0.178 H 267.2°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#2F4EBD
RGBrgb(47, 78, 189)
HSLhsl(227, 60%, 46%)
HSVhsv(227, 75%, 74%)
CMYKcmyk(75.1%, 58.7%, 0%, 25.9%)
CIE-LABlab(37.35, 28.20, -61.62)
CIE-LCHlch(37.35, 67.77, 294.59°)
OKLaboklab(47.05% -0.0088 -0.1779)
OKLCHoklch(47.05% 0.178 267.2)
XYZxyz(13.0788, 9.7258, 49.3222)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EBD #BD9E2F
analogous
#2F95BD #2F4EBD #572FBD
triadic
#2F4EBD #BD2F4E #4EBD2F
tetradic
#2F4EBD #BD2F95 #BD9E2F #2FBD57
square
#2F4EBD #BD2F95 #BD9E2F #2FBD57
split-complementary
#2F4EBD #BD572F #95BD2F
monochromatic
#17265B #233A8C #2F4EBD #5571D5 #869AE1

Accessibility & contrast

On white

7.13
#2F4EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2F4EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EBD
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EBD#FFFFFF#000000##FFFFFF
##2F4EBD1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC1
Deuteranopia (green-blind)
#0051BB
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f4ebd;
/* rgb */ color: rgb(47, 78, 189);
/* oklch */ color: oklch(47.1% 0.178 267.2);
Tailwind
colors: {
  custom: {
    50: '#7c7fd2',
    500: '#2f4ebd',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ebd;
$custom-light: #7c7fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ebd",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 189
  },
  "hsl": {
    "h": 226.901,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47051,
    "c": 0.17813,
    "h": 267.2
  },
  "luminance": 0.09727
}

Semantic roles & 50–950 ramp

primary
#2F4EBD
secondary
#CABA7E
accent
#C144E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F4EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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