#2F2B9A#2F2B9A

#2F2B9A is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.173 H 275.7°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#2F2B9A
RGBrgb(47, 43, 154)
HSLhsl(242, 56%, 39%)
HSVhsv(242, 72%, 60%)
CMYKcmyk(69.5%, 72.1%, 0%, 39.6%)
CIE-LABlab(25.76, 37.92, -59.65)
CIE-LCHlch(25.76, 70.68, 302.44°)
OKLaboklab(37.6% 0.0172 -0.1724)
OKLCHoklch(37.6% 0.173 275.7)
XYZxyz(7.8670, 4.6645, 31.0513)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B9A #969A2B
analogous
#2B5E9A #2F2B9A #662B9A
triadic
#2F2B9A #9A2F2B #2B9A2F
tetradic
#2F2B9A #9A2B5E #969A2B #2B9A66
square
#2F2B9A #9A2B5E #969A2B #2B9A66
split-complementary
#2F2B9A #9A662B #5E9A2B
monochromatic
#12103A #201E6A #2F2B9A #3F3AC8 #6E6AD5

Accessibility & contrast

On white

10.86
#2F2B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F2B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B9A
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B9A#FFFFFF#000000##FFFFFF
##2F2B9A1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003898
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2b9a;
/* rgb */ color: rgb(47, 43, 154);
/* oklch */ color: oklch(37.6% 0.173 275.7);
Tailwind
colors: {
  custom: {
    50: '#7765b9',
    500: '#2f2b9a',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b9a;
$custom-light: #7765b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b9a",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 242.162,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37604,
    "c": 0.17321,
    "h": 275.7
  },
  "luminance": 0.04665
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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