#2F2F7B#2F2F7B

#2F2F7B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.126 H 277.8°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2F2F7B
RGBrgb(47, 47, 123)
HSLhsl(240, 45%, 33%)
HSVhsv(240, 62%, 48%)
CMYKcmyk(61.8%, 61.8%, 0%, 51.8%)
CIE-LABlab(23.89, 24.48, -43.41)
CIE-LCHlch(23.89, 49.83, 299.42°)
OKLaboklab(35.38% 0.0171 -0.1247)
OKLCHoklch(35.38% 0.126 277.8)
XYZxyz(5.7628, 4.0670, 19.2164)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F7B #7B7B2F
analogous
#2F557B #2F2F7B #552F7B
triadic
#2F2F7B #7B2F2F #2F7B2F
tetradic
#2F2F7B #7B2F55 #7B7B2F #2F7B55
square
#2F2F7B #7B2F55 #7B7B2F #2F7B55
split-complementary
#2F2F7B #7B552F #557B2F
monochromatic
#0D0D22 #1E1E4F #2F2F7B #4040A7 #6262C3

Accessibility & contrast

On white

11.58
#2F2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F2F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F7B
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F7B#FFFFFF#000000##FFFFFF
##2F2F7B1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2f7b;
/* rgb */ color: rgb(47, 47, 123);
/* oklch */ color: oklch(35.4% 0.126 277.8);
Tailwind
colors: {
  custom: {
    50: '#7067a2',
    500: '#2f2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f7b;
$custom-light: #7067a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f7b",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 240,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35381,
    "c": 0.1259,
    "h": 277.8
  },
  "luminance": 0.04067
}

Semantic roles & 50–950 ramp

primary
#2F2F7B
secondary
#AAAA5C
accent
#D453D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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