#2F34A3#2F34A3

#2F34A3 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.175 H 273.3°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2F34A3
RGBrgb(47, 52, 163)
HSLhsl(237, 55%, 41%)
HSVhsv(237, 71%, 64%)
CMYKcmyk(71.2%, 68.1%, 0%, 36.1%)
CIE-LABlab(28.65, 35.50, -60.37)
CIE-LCHlch(28.65, 70.03, 300.46°)
OKLaboklab(39.96% 0.01 -0.1744)
OKLCHoklch(39.96% 0.175 273.3)
XYZxyz(9.0089, 5.7038, 35.2694)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34A3 #A39E2F
analogous
#2F6EA3 #2F34A3 #642FA3
triadic
#2F34A3 #A32F34 #34A32F
tetradic
#2F34A3 #A32F6E #A39E2F #2FA364
square
#2F34A3 #A32F6E #A39E2F #2FA364
split-complementary
#2F34A3 #A3642F #6EA32F
monochromatic
#141644 #212573 #2F34A3 #464BCA #7579D7

Accessibility & contrast

On white

9.81
#2F34A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F34A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34A3
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34A3#FFFFFF#000000##FFFFFF
##2F34A31.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#003EA1
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f34a3;
/* rgb */ color: rgb(47, 52, 163);
/* oklch */ color: oklch(40.0% 0.175 273.3);
Tailwind
colors: {
  custom: {
    50: '#786cbf',
    500: '#2f34a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f34a3;
$custom-light: #786cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34a3",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 163
  },
  "hsl": {
    "h": 237.414,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39955,
    "c": 0.17474,
    "h": 273.3
  },
  "luminance": 0.05705
}

Semantic roles & 50–950 ramp

primary
#2F34A3
secondary
#BFBC6F
accent
#D849DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F34A3

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

Preview Lab → · Contrast checker → · Palette generator →

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