#2F3A82#2F3A82

#2F3A82 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.121 H 272.8°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2F3A82
RGBrgb(47, 58, 130)
HSLhsl(232, 47%, 35%)
HSVhsv(232, 64%, 51%)
CMYKcmyk(63.8%, 55.4%, 0%, 49%)
CIE-LABlab(27.41, 19.56, -42.10)
CIE-LCHlch(27.41, 46.43, 294.92°)
OKLaboklab(38.18% 0.0059 -0.1208)
OKLCHoklch(38.18% 0.121 272.8)
XYZxyz(6.7133, 5.2416, 21.7727)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A82 #82772F
analogous
#2F6482 #2F3A82 #4D2F82
triadic
#2F3A82 #822F3A #3A822F
tetradic
#2F3A82 #822F64 #82772F #2F824D
square
#2F3A82 #822F64 #82772F #2F824D
split-complementary
#2F3A82 #824D2F #64822F
monochromatic
#0E1228 #1F2655 #2F3A82 #3F4EAF #6471C7

Accessibility & contrast

On white

10.25
#2F3A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F3A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A82
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A82#FFFFFF#000000##FFFFFF
##2F3A821.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4585
Deuteranopia (green-blind)
#003D81
Tritanopia (blue-blind)
#004B58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3a82;
/* rgb */ color: rgb(47, 58, 130);
/* oklch */ color: oklch(38.2% 0.121 272.8);
Tailwind
colors: {
  custom: {
    50: '#7170a7',
    500: '#2f3a82',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a82;
$custom-light: #7170a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a82",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 130
  },
  "hsl": {
    "h": 232.048,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38177,
    "c": 0.12093,
    "h": 272.8
  },
  "luminance": 0.05242
}

Semantic roles & 50–950 ramp

primary
#2F3A82
secondary
#AEA35F
accent
#C551D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F3A82

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

Preview Lab → · Contrast checker → · Palette generator →

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