#2F2BA5#2F2BA5

#2F2BA5 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.187 H 274.7°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#2F2BA5
RGBrgb(47, 43, 165)
HSLhsl(242, 59%, 41%)
HSVhsv(242, 74%, 65%)
CMYKcmyk(71.5%, 73.9%, 0%, 35.3%)
CIE-LABlab(26.87, 41.63, -64.51)
CIE-LCHlch(26.87, 76.77, 302.83°)
OKLaboklab(38.73% 0.0152 -0.1865)
OKLCHoklch(38.73% 0.187 274.7)
XYZxyz(8.8254, 5.0479, 36.0992)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2BA5 #A1A52B
analogous
#2B64A5 #2F2BA5 #6C2BA5
triadic
#2F2BA5 #A52F2B #2BA52F
tetradic
#2F2BA5 #A52B64 #A1A52B #2BA56C
square
#2F2BA5 #A52B64 #A1A52B #2BA56C
split-complementary
#2F2BA5 #A56C2B #64A52B
monochromatic
#131244 #211E74 #2F2BA5 #4540CD #7471DA

Accessibility & contrast

On white

10.45
#2F2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F2BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2BA5
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2BA5#FFFFFF#000000##FFFFFF
##2F2BA51.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2ba5;
/* rgb */ color: rgb(47, 43, 165);
/* oklch */ color: oklch(38.7% 0.187 274.7);
Tailwind
colors: {
  custom: {
    50: '#7a66c1',
    500: '#2f2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ba5;
$custom-light: #7a66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ba5",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 241.967,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38734,
    "c": 0.18715,
    "h": 274.7
  },
  "luminance": 0.05049
}

Semantic roles & 50–950 ramp

primary
#2F2BA5
secondary
#BEC16B
accent
#E246DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #2F2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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