#2F3FA5#2F3FA5

#2F3FA5 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.164 H 270.7°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#2F3FA5
RGBrgb(47, 63, 165)
HSLhsl(232, 56%, 42%)
HSVhsv(232, 72%, 65%)
CMYKcmyk(71.5%, 61.8%, 0%, 35.3%)
CIE-LABlab(31.52, 29.14, -56.88)
CIE-LCHlch(31.52, 63.91, 297.13°)
OKLaboklab(42.11% 0.0021 -0.1642)
OKLCHoklch(42.11% 0.164 270.7)
XYZxyz(9.7390, 6.8750, 36.4038)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3FA5 #A5952F
analogous
#2F7AA5 #2F3FA5 #5A2FA5
triadic
#2F3FA5 #A52F3F #3FA52F
tetradic
#2F3FA5 #A52F7A #A5952F #2FA55A
square
#2F3FA5 #A52F7A #A5952F #2FA55A
split-complementary
#2F3FA5 #A55A2F #7AA52F
monochromatic
#141B46 #212D75 #2F3FA5 #4759CB #7684D8

Accessibility & contrast

On white

8.84
#2F3FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2F3FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3FA5
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3FA5#FFFFFF#000000##FFFFFF
##2F3FA51.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f3fa5;
/* rgb */ color: rgb(47, 63, 165);
/* oklch */ color: oklch(42.1% 0.164 270.7);
Tailwind
colors: {
  custom: {
    50: '#7874c1',
    500: '#2f3fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2f3fa5;
$custom-light: #7874c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3fa5",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 165
  },
  "hsl": {
    "h": 231.864,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4211,
    "c": 0.16417,
    "h": 270.7
  },
  "luminance": 0.06876
}

Semantic roles & 50–950 ramp

primary
#2F3FA5
secondary
#C0B570
accent
#CB49DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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