#2F3EA1#2F3EA1

#2F3EA1 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.6% C 0.160 H 271.0°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#2F3EA1
RGBrgb(47, 62, 161)
HSLhsl(232, 55%, 41%)
HSVhsv(232, 71%, 63%)
CMYKcmyk(70.8%, 61.5%, 0%, 36.9%)
CIE-LABlab(30.93, 28.33, -55.43)
CIE-LCHlch(30.93, 62.25, 297.07°)
OKLaboklab(41.57% 0.0029 -0.1599)
OKLCHoklch(41.57% 0.16 271)
XYZxyz(9.3258, 6.6219, 34.4980)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3EA1 #A1922F
analogous
#2F77A1 #2F3EA1 #592FA1
triadic
#2F3EA1 #A12F3E #3EA12F
tetradic
#2F3EA1 #A12F77 #A1922F #2FA159
square
#2F3EA1 #A12F77 #A1922F #2FA159
split-complementary
#2F3EA1 #A1592F #77A12F
monochromatic
#131A42 #212C72 #2F3EA1 #4556C9 #7481D6

Accessibility & contrast

On white

9.03
#2F3EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F3EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3EA1
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3EA1#FFFFFF#000000##FFFFFF
##2F3EA11.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f3ea1;
/* rgb */ color: rgb(47, 62, 161);
/* oklch */ color: oklch(41.6% 0.160 271.0);
Tailwind
colors: {
  custom: {
    50: '#7773be',
    500: '#2f3ea1',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ea1;
$custom-light: #7773be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ea1",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 161
  },
  "hsl": {
    "h": 232.105,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41569,
    "c": 0.15995,
    "h": 271
  },
  "luminance": 0.06623
}

Semantic roles & 50–950 ramp

primary
#2F3EA1
secondary
#BEB46E
accent
#CB4ADE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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