#2F2B9F#2F2B9F

#2F2B9F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.180 H 275.2°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#2F2B9F
RGBrgb(47, 43, 159)
HSLhsl(242, 57%, 40%)
HSVhsv(242, 73%, 62%)
CMYKcmyk(70.4%, 73%, 0%, 37.6%)
CIE-LABlab(26.26, 39.61, -61.88)
CIE-LCHlch(26.26, 73.47, 302.63°)
OKLaboklab(38.11% 0.0163 -0.1789)
OKLCHoklch(38.11% 0.18 275.2)
XYZxyz(8.2921, 4.8345, 33.2903)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B9F #9B9F2B
analogous
#2B619F #2F2B9F #692B9F
triadic
#2F2B9F #9F2F2B #2B9F2F
tetradic
#2F2B9F #9F2B61 #9B9F2B #2B9F69
square
#2F2B9F #9F2B61 #9B9F2B #2B9F69
split-complementary
#2F2B9F #9F692B #619F2B
monochromatic
#13113F #211E6F #2F2B9F #423DCA #716DD7

Accessibility & contrast

On white

10.68
#2F2B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2F2B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B9F
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B9F#FFFFFF#000000##FFFFFF
##2F2B9F1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2b9f;
/* rgb */ color: rgb(47, 43, 159);
/* oklch */ color: oklch(38.1% 0.180 275.2);
Tailwind
colors: {
  custom: {
    50: '#7866bd',
    500: '#2f2b9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b9f;
$custom-light: #7866bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b9f",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 242.069,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38114,
    "c": 0.1796,
    "h": 275.2
  },
  "luminance": 0.04835
}

Semantic roles & 50–950 ramp

primary
#2F2B9F
secondary
#BBBE67
accent
#E147DB
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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