#2F2B9B#2F2B9B

#2F2B9B is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.174 H 275.6°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2F2B9B
RGBrgb(47, 43, 155)
HSLhsl(242, 57%, 39%)
HSVhsv(242, 72%, 61%)
CMYKcmyk(69.7%, 72.3%, 0%, 39.2%)
CIE-LABlab(25.86, 38.26, -60.10)
CIE-LCHlch(25.86, 71.24, 302.48°)
OKLaboklab(37.71% 0.017 -0.1737)
OKLCHoklch(37.71% 0.175 275.6)
XYZxyz(7.9506, 4.6979, 31.4918)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B9B #979B2B
analogous
#2B5F9B #2F2B9B #672B9B
triadic
#2F2B9B #9B2F2B #2B9B2F
tetradic
#2F2B9B #9B2B5F #979B2B #2B9B67
square
#2F2B9B #9B2B5F #979B2B #2B9B67
split-complementary
#2F2B9B #9B672B #5F9B2B
monochromatic
#12103B #201E6B #2F2B9B #403BC9 #6E6BD6

Accessibility & contrast

On white

10.83
#2F2B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F2B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B9B
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B9B#FFFFFF#000000##FFFFFF
##2F2B9B1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2b9b;
/* rgb */ color: rgb(47, 43, 155);
/* oklch */ color: oklch(37.7% 0.174 275.6);
Tailwind
colors: {
  custom: {
    50: '#7765ba',
    500: '#2f2b9b',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b9b;
$custom-light: #7765ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b9b",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 242.143,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37706,
    "c": 0.1745,
    "h": 275.6
  },
  "luminance": 0.04699
}

Semantic roles & 50–950 ramp

primary
#2F2B9B
secondary
#B9BC65
accent
#E048DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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