#2F3AA9#2F3AA9

#2F3AA9 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.6% C 0.176 H 271.8°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#2F3AA9
RGBrgb(47, 58, 169)
HSLhsl(235, 56%, 42%)
HSVhsv(235, 72%, 66%)
CMYKcmyk(72.2%, 65.7%, 0%, 33.7%)
CIE-LABlab(30.63, 33.84, -60.75)
CIE-LCHlch(30.63, 69.53, 299.12°)
OKLaboklab(41.56% 0.0055 -0.1755)
OKLCHoklch(41.56% 0.176 271.8)
XYZxyz(9.8444, 6.4940, 38.2631)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AA9 #A99E2F
analogous
#2F77A9 #2F3AA9 #612FA9
triadic
#2F3AA9 #A92F3A #3AA92F
tetradic
#2F3AA9 #A92F77 #A99E2F #2FA961
square
#2F3AA9 #A92F77 #A99E2F #2FA961
split-complementary
#2F3AA9 #A9612F #77A92F
monochromatic
#141949 #222A79 #2F3AA9 #4955CC #7981DA

Accessibility & contrast

On white

9.13
#2F3AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F3AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AA9
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AA9#FFFFFF#000000##FFFFFF
##2F3AA91.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAD
Deuteranopia (green-blind)
#0042A7
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3aa9;
/* rgb */ color: rgb(47, 58, 169);
/* oklch */ color: oklch(41.6% 0.176 271.8);
Tailwind
colors: {
  custom: {
    50: '#7970c4',
    500: '#2f3aa9',
    950: '#000000',
  },
}
SCSS
$custom: #2f3aa9;
$custom-light: #7970c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3aa9",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 169
  },
  "hsl": {
    "h": 234.59,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4156,
    "c": 0.17562,
    "h": 271.8
  },
  "luminance": 0.06495
}

Semantic roles & 50–950 ramp

primary
#2F3AA9
secondary
#C2BB72
accent
#D248E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2F3AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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