#2F2B9D#2F2B9D

#2F2B9D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.177 H 275.4°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#2F2B9D
RGBrgb(47, 43, 157)
HSLhsl(242, 57%, 39%)
HSVhsv(242, 73%, 62%)
CMYKcmyk(70.1%, 72.6%, 0%, 38.4%)
CIE-LABlab(26.06, 38.93, -60.99)
CIE-LCHlch(26.06, 72.36, 302.55°)
OKLaboklab(37.91% 0.0167 -0.1763)
OKLCHoklch(37.91% 0.177 275.4)
XYZxyz(8.1200, 4.7657, 32.3837)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B9D #999D2B
analogous
#2B609D #2F2B9D #682B9D
triadic
#2F2B9D #9D2F2B #2B9D2F
tetradic
#2F2B9D #9D2B60 #999D2B #2B9D68
square
#2F2B9D #9D2B60 #999D2B #2B9D68
split-complementary
#2F2B9D #9D682B #609D2B
monochromatic
#12113D #211E6D #2F2B9D #413CCA #6F6CD7

Accessibility & contrast

On white

10.75
#2F2B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2F2B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B9D
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B9D#FFFFFF#000000##FFFFFF
##2F2B9D1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2b9d;
/* rgb */ color: rgb(47, 43, 157);
/* oklch */ color: oklch(37.9% 0.177 275.4);
Tailwind
colors: {
  custom: {
    50: '#7866bb',
    500: '#2f2b9d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b9d;
$custom-light: #7866bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b9d",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 242.105,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37909,
    "c": 0.17706,
    "h": 275.4
  },
  "luminance": 0.04766
}

Semantic roles & 50–950 ramp

primary
#2F2B9D
secondary
#BABD66
accent
#E048DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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