#2F3AA2#2F3AA2

#2F3AA2 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.9% C 0.166 H 272.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#2F3AA2
RGBrgb(47, 58, 162)
HSLhsl(234, 55%, 41%)
HSVhsv(234, 71%, 64%)
CMYKcmyk(71%, 64.2%, 0%, 36.5%)
CIE-LABlab(30.01, 31.31, -57.55)
CIE-LCHlch(30.01, 65.51, 298.55°)
OKLaboklab(40.91% 0.0059 -0.1662)
OKLCHoklch(40.91% 0.166 272)
XYZxyz(9.2047, 6.2382, 34.8944)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AA2 #A2972F
analogous
#2F73A2 #2F3AA2 #5D2FA2
triadic
#2F3AA2 #A22F3A #3AA22F
tetradic
#2F3AA2 #A22F73 #A2972F #2FA25D
square
#2F3AA2 #A22F73 #A2972F #2FA25D
split-complementary
#2F3AA2 #A25D2F #73A22F
monochromatic
#131843 #212973 #2F3AA2 #4552C9 #757ED7

Accessibility & contrast

On white

9.34
#2F3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2F3AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AA2
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AA2#FFFFFF#000000##FFFFFF
##2F3AA21.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3aa2;
/* rgb */ color: rgb(47, 58, 162);
/* oklch */ color: oklch(40.9% 0.166 272.0);
Tailwind
colors: {
  custom: {
    50: '#7870be',
    500: '#2f3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #2f3aa2;
$custom-light: #7870be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3aa2",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 234.261,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40914,
    "c": 0.16627,
    "h": 272
  },
  "luminance": 0.06239
}

Semantic roles & 50–950 ramp

primary
#2F3AA2
secondary
#BFB76E
accent
#D049DE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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