#2F3CA7#2F3CA7

#2F3CA7 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.7% C 0.171 H 271.4°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#2F3CA7
RGBrgb(47, 60, 167)
HSLhsl(234, 56%, 42%)
HSVhsv(234, 72%, 65%)
CMYKcmyk(71.9%, 64.1%, 0%, 34.5%)
CIE-LABlab(30.94, 31.83, -59.03)
CIE-LCHlch(30.94, 67.07, 298.33°)
OKLaboklab(41.73% 0.0042 -0.1705)
OKLCHoklch(41.73% 0.171 271.4)
XYZxyz(9.7608, 6.6251, 37.3161)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3CA7 #A79A2F
analogous
#2F78A7 #2F3CA7 #5E2FA7
triadic
#2F3CA7 #A72F3C #3CA72F
tetradic
#2F3CA7 #A72F78 #A79A2F #2FA75E
square
#2F3CA7 #A72F78 #A79A2F #2FA75E
split-complementary
#2F3CA7 #A75E2F #78A72F
monochromatic
#141A47 #222B77 #2F3CA7 #4856CB #7882D9

Accessibility & contrast

On white

9.03
#2F3CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F3CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3CA7
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3CA7#FFFFFF#000000##FFFFFF
##2F3CA71.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f3ca7;
/* rgb */ color: rgb(47, 60, 167);
/* oklch */ color: oklch(41.7% 0.171 271.4);
Tailwind
colors: {
  custom: {
    50: '#7971c2',
    500: '#2f3ca7',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ca7;
$custom-light: #7971c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ca7",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 167
  },
  "hsl": {
    "h": 233.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41734,
    "c": 0.17056,
    "h": 271.4
  },
  "luminance": 0.06626
}

Semantic roles & 50–950 ramp

primary
#2F3CA7
secondary
#C1B871
accent
#CF48DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F3CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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