#2F2B9C#2F2B9C

#2F2B9C is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.176 H 275.5°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2F2B9C
RGBrgb(47, 43, 156)
HSLhsl(242, 57%, 39%)
HSVhsv(242, 72%, 61%)
CMYKcmyk(69.9%, 72.4%, 0%, 38.8%)
CIE-LABlab(25.96, 38.59, -60.54)
CIE-LCHlch(25.96, 71.80, 302.52°)
OKLaboklab(37.81% 0.0168 -0.175)
OKLCHoklch(37.81% 0.176 275.5)
XYZxyz(8.0349, 4.7317, 31.9359)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B9C #989C2B
analogous
#2B609C #2F2B9C #682B9C
triadic
#2F2B9C #9C2F2B #2B9C2F
tetradic
#2F2B9C #9C2B60 #989C2B #2B9C68
square
#2F2B9C #9C2B60 #989C2B #2B9C68
split-complementary
#2F2B9C #9C682B #609C2B
monochromatic
#12113C #211E6C #2F2B9C #403BC9 #6F6BD6

Accessibility & contrast

On white

10.79
#2F2B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2B9C
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B9C#FFFFFF#000000##FFFFFF
##2F2B9C1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2b9c;
/* rgb */ color: rgb(47, 43, 156);
/* oklch */ color: oklch(37.8% 0.176 275.5);
Tailwind
colors: {
  custom: {
    50: '#7866ba',
    500: '#2f2b9c',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b9c;
$custom-light: #7866ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b9c",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 242.124,
    "s": 56.784,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37807,
    "c": 0.17578,
    "h": 275.5
  },
  "luminance": 0.04732
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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