#2F3EA6#2F3EA6

#2F3EA6 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.167 H 271.0°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#2F3EA6
RGBrgb(47, 62, 166)
HSLhsl(232, 56%, 42%)
HSVhsv(232, 72%, 65%)
CMYKcmyk(71.7%, 62.7%, 0%, 34.9%)
CIE-LABlab(31.35, 30.16, -57.76)
CIE-LCHlch(31.35, 65.16, 297.57°)
OKLaboklab(42.01% 0.0028 -0.1667)
OKLCHoklch(42.01% 0.167 271)
XYZxyz(9.7755, 6.8018, 36.8667)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3EA6 #A6972F
analogous
#2F7AA6 #2F3EA6 #5C2FA6
triadic
#2F3EA6 #A62F3E #3EA62F
tetradic
#2F3EA6 #A62F7A #A6972F #2FA65C
square
#2F3EA6 #A62F7A #A6972F #2FA65C
split-complementary
#2F3EA6 #A65C2F #7AA62F
monochromatic
#141A47 #212C76 #2F3EA6 #4758CB #7783D8

Accessibility & contrast

On white

8.90
#2F3EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2F3EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3EA6
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3EA6#FFFFFF#000000##FFFFFF
##2F3EA61.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3ea6;
/* rgb */ color: rgb(47, 62, 166);
/* oklch */ color: oklch(42.0% 0.167 271.0);
Tailwind
colors: {
  custom: {
    50: '#7873c1',
    500: '#2f3ea6',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ea6;
$custom-light: #7873c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ea6",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 232.437,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42012,
    "c": 0.16677,
    "h": 271
  },
  "luminance": 0.06803
}

Semantic roles & 50–950 ramp

primary
#2F3EA6
secondary
#C1B670
accent
#CC49DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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