#2F2F9C#2F2F9C

#2F2F9C is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.171 H 274.8°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#2F2F9C
RGBrgb(47, 47, 156)
HSLhsl(240, 54%, 40%)
HSVhsv(240, 70%, 61%)
CMYKcmyk(69.9%, 69.9%, 0%, 38.8%)
CIE-LABlab(26.84, 36.17, -59.09)
CIE-LCHlch(26.84, 69.28, 301.47°)
OKLaboklab(38.44% 0.0142 -0.1707)
OKLCHoklch(38.44% 0.171 274.8)
XYZxyz(8.1876, 5.0369, 31.9868)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F9C #9C9C2F
analogous
#2F669C #2F2F9C #662F9C
triadic
#2F2F9C #9C2F2F #2F9C2F
tetradic
#2F2F9C #9C2F66 #9C9C2F #2F9C66
square
#2F2F9C #9C2F66 #9C9C2F #2F9C66
split-complementary
#2F2F9C #9C662F #669C2F
monochromatic
#13133E #21216D #2F2F9C #4242C6 #7171D4

Accessibility & contrast

On white

10.46
#2F2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F2F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F9C
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F9C#FFFFFF#000000##FFFFFF
##2F2F9C1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2f9c;
/* rgb */ color: rgb(47, 47, 156);
/* oklch */ color: oklch(38.4% 0.171 274.8);
Tailwind
colors: {
  custom: {
    50: '#7768ba',
    500: '#2f2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f9c;
$custom-light: #7768ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f9c",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 240,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38442,
    "c": 0.17132,
    "h": 274.8
  },
  "luminance": 0.05038
}

Semantic roles & 50–950 ramp

primary
#2F2F9C
secondary
#BCBC6B
accent
#DD4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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