#2F2F8A#2F2F8A

#2F2F8A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.147 H 276.3°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#2F2F8A
RGBrgb(47, 47, 138)
HSLhsl(240, 49%, 36%)
HSVhsv(240, 66%, 54%)
CMYKcmyk(65.9%, 65.9%, 0%, 45.9%)
CIE-LABlab(25.17, 29.84, -50.73)
CIE-LCHlch(25.17, 58.86, 300.46°)
OKLaboklab(36.72% 0.0163 -0.1462)
OKLCHoklch(36.72% 0.147 276.3)
XYZxyz(6.7748, 4.4718, 24.5460)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F8A #8A8A2F
analogous
#2F5D8A #2F2F8A #5D2F8A
triadic
#2F2F8A #8A2F2F #2F8A2F
tetradic
#2F2F8A #8A2F5D #8A8A2F #2F8A5D
square
#2F2F8A #8A2F5D #8A8A2F #2F8A5D
split-complementary
#2F2F8A #8A5D2F #5D8A2F
monochromatic
#10102F #1F1F5C #2F2F8A #3F3FB8 #6868CC

Accessibility & contrast

On white

11.09
#2F2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F8A
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F8A#FFFFFF#000000##FFFFFF
##2F2F8A1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f2f8a;
/* rgb */ color: rgb(47, 47, 138);
/* oklch */ color: oklch(36.7% 0.147 276.3);
Tailwind
colors: {
  custom: {
    50: '#7368ad',
    500: '#2f2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f8a;
$custom-light: #7368ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f8a",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 240,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36722,
    "c": 0.14715,
    "h": 276.3
  },
  "luminance": 0.04472
}

Semantic roles & 50–950 ramp

primary
#2F2F8A
secondary
#B3B362
accent
#D94FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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