#2F3BA5#2F3BA5

#2F3BA5 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.169 H 271.7°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#2F3BA5
RGBrgb(47, 59, 165)
HSLhsl(234, 56%, 42%)
HSVhsv(234, 72%, 65%)
CMYKcmyk(71.5%, 64.2%, 0%, 35.3%)
CIE-LABlab(30.52, 31.75, -58.52)
CIE-LCHlch(30.52, 66.58, 298.48°)
OKLaboklab(41.37% 0.005 -0.169)
OKLCHoklch(41.37% 0.169 271.7)
XYZxyz(9.5255, 6.4479, 36.3326)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3BA5 #A5992F
analogous
#2F76A5 #2F3BA5 #5E2FA5
triadic
#2F3BA5 #A52F3B #3BA52F
tetradic
#2F3BA5 #A52F76 #A5992F #2FA55E
square
#2F3BA5 #A52F76 #A5992F #2FA55E
split-complementary
#2F3BA5 #A55E2F #76A52F
monochromatic
#141946 #212A75 #2F3BA5 #4754CB #7680D8

Accessibility & contrast

On white

9.17
#2F3BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F3BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3BA5
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3BA5#FFFFFF#000000##FFFFFF
##2F3BA51.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#0042A3
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3ba5;
/* rgb */ color: rgb(47, 59, 165);
/* oklch */ color: oklch(41.4% 0.169 271.7);
Tailwind
colors: {
  custom: {
    50: '#7871c1',
    500: '#2f3ba5',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ba5;
$custom-light: #7871c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ba5",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 165
  },
  "hsl": {
    "h": 233.898,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4137,
    "c": 0.16908,
    "h": 271.7
  },
  "luminance": 0.06449
}

Semantic roles & 50–950 ramp

primary
#2F3BA5
secondary
#C0B870
accent
#D049DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F3BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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