#2F3AAF#2F3AAF

#2F3AAF is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.183 H 271.6°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#2F3AAF
RGBrgb(47, 58, 175)
HSLhsl(235, 58%, 44%)
HSVhsv(235, 73%, 69%)
CMYKcmyk(73.1%, 66.9%, 0%, 31.4%)
CIE-LABlab(31.17, 35.98, -63.44)
CIE-LCHlch(31.17, 72.94, 299.56°)
OKLaboklab(42.13% 0.005 -0.1834)
OKLCHoklch(42.13% 0.184 271.6)
XYZxyz(10.4206, 6.7245, 41.2979)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AAF #AFA42F
analogous
#2F7AAF #2F3AAF #642FAF
triadic
#2F3AAF #AF2F3A #3AAF2F
tetradic
#2F3AAF #AF2F7A #AFA42F #2FAF64
square
#2F3AAF #AF2F7A #AFA42F #2FAF64
split-complementary
#2F3AAF #AF642F #7AAF2F
monochromatic
#151A4F #222A7F #2F3AAF #4C57CF #7C85DC

Accessibility & contrast

On white

8.95
#2F3AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F3AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AAF
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AAF#FFFFFF#000000##FFFFFF
##2F3AAF1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f3aaf;
/* rgb */ color: rgb(47, 58, 175);
/* oklch */ color: oklch(42.1% 0.183 271.6);
Tailwind
colors: {
  custom: {
    50: '#7b70c8',
    500: '#2f3aaf',
    950: '#000000',
  },
}
SCSS
$custom: #2f3aaf;
$custom-light: #7b70c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3aaf",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 234.844,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42125,
    "c": 0.1835,
    "h": 271.6
  },
  "luminance": 0.06726
}

Semantic roles & 50–950 ramp

primary
#2F3AAF
secondary
#C4BE75
accent
#D447E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F3AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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