#2F3EA3#2F3EA3

#2F3EA3 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.163 H 271.0°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#2F3EA3
RGBrgb(47, 62, 163)
HSLhsl(232, 55%, 41%)
HSVhsv(232, 71%, 64%)
CMYKcmyk(71.2%, 62%, 0%, 36.1%)
CIE-LABlab(31.10, 29.06, -56.37)
CIE-LCHlch(31.10, 63.42, 297.28°)
OKLaboklab(41.75% 0.0029 -0.1627)
OKLCHoklch(41.75% 0.163 271)
XYZxyz(9.5035, 6.6930, 35.4343)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3EA3 #A3942F
analogous
#2F78A3 #2F3EA3 #5A2FA3
triadic
#2F3EA3 #A32F3E #3EA32F
tetradic
#2F3EA3 #A32F78 #A3942F #2FA35A
square
#2F3EA3 #A32F78 #A3942F #2FA35A
split-complementary
#2F3EA3 #A35A2F #78A32F
monochromatic
#141A44 #212C73 #2F3EA3 #4657CA #7582D7

Accessibility & contrast

On white

8.98
#2F3EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F3EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3EA3
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3EA3#FFFFFF#000000##FFFFFF
##2F3EA31.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f3ea3;
/* rgb */ color: rgb(47, 62, 163);
/* oklch */ color: oklch(41.7% 0.163 271.0);
Tailwind
colors: {
  custom: {
    50: '#7773bf',
    500: '#2f3ea3',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ea3;
$custom-light: #7773bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ea3",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 163
  },
  "hsl": {
    "h": 232.241,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41745,
    "c": 0.16269,
    "h": 271
  },
  "luminance": 0.06694
}

Semantic roles & 50–950 ramp

primary
#2F3EA3
secondary
#BFB56F
accent
#CB49DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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