#2F3EA7#2F3EA7

#2F3EA7 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.1% C 0.168 H 270.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2F3EA7
RGBrgb(47, 62, 167)
HSLhsl(233, 56%, 42%)
HSVhsv(233, 72%, 65%)
CMYKcmyk(71.9%, 62.9%, 0%, 34.5%)
CIE-LABlab(31.44, 30.53, -58.22)
CIE-LCHlch(31.44, 65.74, 297.67°)
OKLaboklab(42.1% 0.0028 -0.1681)
OKLCHoklch(42.1% 0.168 270.9)
XYZxyz(9.8676, 6.8386, 37.3517)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3EA7 #A7982F
analogous
#2F7AA7 #2F3EA7 #5C2FA7
triadic
#2F3EA7 #A72F3E #3EA72F
tetradic
#2F3EA7 #A72F7A #A7982F #2FA75C
square
#2F3EA7 #A72F7A #A7982F #2FA75C
split-complementary
#2F3EA7 #A75C2F #7AA72F
monochromatic
#141B47 #222C77 #2F3EA7 #4858CB #7884D9

Accessibility & contrast

On white

8.87
#2F3EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2F3EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3EA7
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3EA7#FFFFFF#000000##FFFFFF
##2F3EA71.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3ea7;
/* rgb */ color: rgb(47, 62, 167);
/* oklch */ color: oklch(42.1% 0.168 270.9);
Tailwind
colors: {
  custom: {
    50: '#7873c2',
    500: '#2f3ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ea7;
$custom-light: #7873c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ea7",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 232.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42101,
    "c": 0.16812,
    "h": 270.9
  },
  "luminance": 0.0684
}

Semantic roles & 50–950 ramp

primary
#2F3EA7
secondary
#C1B771
accent
#CD48DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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