#2F3BA9#2F3BA9

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

Color values

HEX#2F3BA9
RGBrgb(47, 59, 169)
HSLhsl(234, 56%, 42%)
HSVhsv(234, 72%, 66%)
CMYKcmyk(72.2%, 65.1%, 0%, 33.7%)
CIE-LABlab(30.87, 33.20, -60.35)
CIE-LCHlch(30.87, 68.88, 298.81°)
OKLaboklab(41.74% 0.0048 -0.1744)
OKLCHoklch(41.74% 0.174 271.6)
XYZxyz(9.8953, 6.5958, 38.2801)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3BA9 #A99D2F
analogous
#2F78A9 #2F3BA9 #602FA9
triadic
#2F3BA9 #A92F3B #3BA92F
tetradic
#2F3BA9 #A92F78 #A99D2F #2FA960
square
#2F3BA9 #A92F78 #A99D2F #2FA960
split-complementary
#2F3BA9 #A9602F #78A92F
monochromatic
#141A49 #222A79 #2F3BA9 #4956CC #7982DA

Accessibility & contrast

On white

9.05
#2F3BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F3BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3BA9
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3BA9#FFFFFF#000000##FFFFFF
##2F3BA91.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3ba9;
/* rgb */ color: rgb(47, 59, 169);
/* oklch */ color: oklch(41.7% 0.174 271.6);
Tailwind
colors: {
  custom: {
    50: '#7971c4',
    500: '#2f3ba9',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ba9;
$custom-light: #7971c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ba9",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 169
  },
  "hsl": {
    "h": 234.098,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41737,
    "c": 0.17444,
    "h": 271.6
  },
  "luminance": 0.06597
}

Semantic roles & 50–950 ramp

primary
#2F3BA9
secondary
#C2BA72
accent
#D148E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2F3BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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