#2F3AA3#2F3AA3

#2F3AA3 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.0% C 0.168 H 272.0°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2F3AA3
RGBrgb(47, 58, 163)
HSLhsl(234, 55%, 41%)
HSVhsv(234, 71%, 64%)
CMYKcmyk(71.2%, 64.4%, 0%, 36.1%)
CIE-LABlab(30.09, 31.67, -58.01)
CIE-LCHlch(30.09, 66.09, 298.64°)
OKLaboklab(41.01% 0.0059 -0.1675)
OKLCHoklch(41.01% 0.168 272)
XYZxyz(9.2940, 6.2739, 35.3644)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AA3 #A3982F
analogous
#2F74A3 #2F3AA3 #5E2FA3
triadic
#2F3AA3 #A32F3A #3AA32F
tetradic
#2F3AA3 #A32F74 #A3982F #2FA35E
square
#2F3AA3 #A32F74 #A3982F #2FA35E
split-complementary
#2F3AA3 #A35E2F #74A32F
monochromatic
#141844 #212973 #2F3AA3 #4652CA #757ED7

Accessibility & contrast

On white

9.31
#2F3AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F3AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AA3
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AA3#FFFFFF#000000##FFFFFF
##2F3AA31.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#0042A1
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3aa3;
/* rgb */ color: rgb(47, 58, 163);
/* oklch */ color: oklch(41.0% 0.168 272.0);
Tailwind
colors: {
  custom: {
    50: '#7870bf',
    500: '#2f3aa3',
    950: '#000000',
  },
}
SCSS
$custom: #2f3aa3;
$custom-light: #7870bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3aa3",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 163
  },
  "hsl": {
    "h": 234.31,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41006,
    "c": 0.16761,
    "h": 272
  },
  "luminance": 0.06275
}

Semantic roles & 50–950 ramp

primary
#2F3AA3
secondary
#BFB86F
accent
#D049DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F3AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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