#2F4DC1#2F4DC1

#2F4DC1 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.2% C 0.185 H 267.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2F4DC1
RGBrgb(47, 77, 193)
HSLhsl(228, 61%, 47%)
HSVhsv(228, 76%, 76%)
CMYKcmyk(75.6%, 60.1%, 0%, 24.3%)
CIE-LABlab(37.41, 30.33, -63.86)
CIE-LCHlch(37.41, 70.70, 295.40°)
OKLaboklab(47.2% -0.008 -0.1845)
OKLCHoklch(47.2% 0.185 267.5)
XYZxyz(13.4485, 9.7609, 51.6170)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4DC1 #C1A32F
analogous
#2F96C1 #2F4DC1 #5A2FC1
triadic
#2F4DC1 #C12F4D #4DC12F
tetradic
#2F4DC1 #C12F96 #C1A32F #2FC15A
square
#2F4DC1 #C12F96 #C1A32F #2FC15A
split-complementary
#2F4DC1 #C15A2F #96C12F
monochromatic
#17265F #233990 #2F4DC1 #5771D6 #889BE2

Accessibility & contrast

On white

7.11
#2F4DC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4DC1
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4DC1#FFFFFF#000000##FFFFFF
##2F4DC11.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC5
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#006A7F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f4dc1;
/* rgb */ color: rgb(47, 77, 193);
/* oklch */ color: oklch(47.2% 0.185 267.5);
Tailwind
colors: {
  custom: {
    50: '#7d7ed5',
    500: '#2f4dc1',
    950: '#000000',
  },
}
SCSS
$custom: #2f4dc1;
$custom-light: #7d7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4dc1",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 193
  },
  "hsl": {
    "h": 227.671,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47199,
    "c": 0.18465,
    "h": 267.5
  },
  "luminance": 0.09762
}

Semantic roles & 50–950 ramp

primary
#2F4DC1
secondary
#CCBC80
accent
#C344E4
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F4DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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