#2F34A1#2F34A1

#2F34A1 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.8% C 0.172 H 273.4°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2F34A1
RGBrgb(47, 52, 161)
HSLhsl(237, 55%, 41%)
HSVhsv(237, 71%, 63%)
CMYKcmyk(70.8%, 67.7%, 0%, 36.9%)
CIE-LABlab(28.47, 34.80, -59.46)
CIE-LCHlch(28.47, 68.90, 300.34°)
OKLaboklab(39.76% 0.0102 -0.1718)
OKLCHoklch(39.76% 0.172 273.4)
XYZxyz(8.8312, 5.6327, 34.3331)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34A1 #A19C2F
analogous
#2F6DA1 #2F34A1 #632FA1
triadic
#2F34A1 #A12F34 #34A12F
tetradic
#2F34A1 #A12F6D #A19C2F #2FA163
square
#2F34A1 #A12F6D #A19C2F #2FA163
split-complementary
#2F34A1 #A1632F #6DA12F
monochromatic
#131542 #212572 #2F34A1 #454AC9 #7478D6

Accessibility & contrast

On white

9.87
#2F34A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F34A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34A1
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34A1#FFFFFF#000000##FFFFFF
##2F34A11.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#003E9F
Tritanopia (blue-blind)
#005166
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f34a1;
/* rgb */ color: rgb(47, 52, 161);
/* oklch */ color: oklch(39.8% 0.172 273.4);
Tailwind
colors: {
  custom: {
    50: '#786cbe',
    500: '#2f34a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f34a1;
$custom-light: #786cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34a1",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 161
  },
  "hsl": {
    "h": 237.368,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39762,
    "c": 0.17211,
    "h": 273.4
  },
  "luminance": 0.05634
}

Semantic roles & 50–950 ramp

primary
#2F34A1
secondary
#BEBB6E
accent
#D84ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F34A1

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

Preview Lab → · Contrast checker → · Palette generator →

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