#2F3EB5#2F3EB5

#2F3EB5 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.187 H 270.6°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#2F3EB5
RGBrgb(47, 62, 181)
HSLhsl(233, 59%, 45%)
HSVhsv(233, 74%, 71%)
CMYKcmyk(74%, 65.7%, 0%, 29%)
CIE-LABlab(32.67, 35.60, -64.56)
CIE-LCHlch(32.67, 73.72, 298.87°)
OKLaboklab(43.38% 0.002 -0.1867)
OKLCHoklch(43.38% 0.187 270.6)
XYZxyz(11.2326, 7.3846, 44.5405)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3EB5 #B5A62F
analogous
#2F81B5 #2F3EB5 #632FB5
triadic
#2F3EB5 #B52F3E #3EB52F
tetradic
#2F3EB5 #B52F81 #B5A62F #2FB563
square
#2F3EB5 #B52F81 #B5A62F #2FB563
split-complementary
#2F3EB5 #B5632F #81B52F
monochromatic
#161D54 #222D84 #2F3EB5 #505ED1 #808BDE

Accessibility & contrast

On white

8.48
#2F3EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2F3EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3EB5
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3EB5#FFFFFF#000000##FFFFFF
##2F3EB51.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f3eb5;
/* rgb */ color: rgb(47, 62, 181);
/* oklch */ color: oklch(43.4% 0.187 270.6);
Tailwind
colors: {
  custom: {
    50: '#7c73cc',
    500: '#2f3eb5',
    950: '#000000',
  },
}
SCSS
$custom: #2f3eb5;
$custom-light: #7c73cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3eb5",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 181
  },
  "hsl": {
    "h": 233.284,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43383,
    "c": 0.18668,
    "h": 270.6
  },
  "luminance": 0.07386
}

Semantic roles & 50–950 ramp

primary
#2F3EB5
secondary
#C7BE79
accent
#D046E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F3EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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