#2F3EB4#2F3EB4

#2F3EB4 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.3% C 0.185 H 270.6°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2F3EB4
RGBrgb(47, 62, 180)
HSLhsl(233, 59%, 45%)
HSVhsv(233, 74%, 71%)
CMYKcmyk(73.9%, 65.6%, 0%, 29.4%)
CIE-LABlab(32.58, 35.24, -64.11)
CIE-LCHlch(32.58, 73.16, 298.79°)
OKLaboklab(43.29% 0.0021 -0.1854)
OKLCHoklch(43.29% 0.185 270.6)
XYZxyz(11.1303, 7.3437, 44.0021)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3EB4 #B4A52F
analogous
#2F81B4 #2F3EB4 #632FB4
triadic
#2F3EB4 #B42F3E #3EB42F
tetradic
#2F3EB4 #B42F81 #B4A52F #2FB463
square
#2F3EB4 #B42F81 #B4A52F #2FB463
split-complementary
#2F3EB4 #B4632F #81B42F
monochromatic
#161D53 #222D83 #2F3EB4 #4F5ED1 #808ADE

Accessibility & contrast

On white

8.51
#2F3EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2F3EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3EB4
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3EB4#FFFFFF#000000##FFFFFF
##2F3EB41.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f3eb4;
/* rgb */ color: rgb(47, 62, 180);
/* oklch */ color: oklch(43.3% 0.185 270.6);
Tailwind
colors: {
  custom: {
    50: '#7b73cb',
    500: '#2f3eb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f3eb4;
$custom-light: #7b73cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3eb4",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 180
  },
  "hsl": {
    "h": 233.233,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4329,
    "c": 0.18538,
    "h": 270.6
  },
  "luminance": 0.07345
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F3EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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