#2F2BA8#2F2BA8

#2F2BA8 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.191 H 274.4°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2F2BA8
RGBrgb(47, 43, 168)
HSLhsl(242, 59%, 41%)
HSVhsv(242, 74%, 66%)
CMYKcmyk(72%, 74.4%, 0%, 34.1%)
CIE-LABlab(27.18, 42.63, -65.81)
CIE-LCHlch(27.18, 78.41, 302.93°)
OKLaboklab(39.05% 0.0147 -0.1903)
OKLCHoklch(39.05% 0.191 274.4)
XYZxyz(9.1017, 5.1584, 37.5542)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2BA8 #A4A82B
analogous
#2B66A8 #2F2BA8 #6E2BA8
triadic
#2F2BA8 #A82F2B #2BA82F
tetradic
#2F2BA8 #A82B66 #A4A82B #2BA86E
square
#2F2BA8 #A82B66 #A4A82B #2BA86E
split-complementary
#2F2BA8 #A86E2B #66A82B
monochromatic
#141247 #211F77 #2F2BA8 #4642CF #7672DB

Accessibility & contrast

On white

10.34
#2F2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F2BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2BA8
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2BA8#FFFFFF#000000##FFFFFF
##2F2BA81.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2ba8;
/* rgb */ color: rgb(47, 43, 168);
/* oklch */ color: oklch(39.0% 0.191 274.4);
Tailwind
colors: {
  custom: {
    50: '#7a66c3',
    500: '#2f2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ba8;
$custom-light: #7a66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ba8",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 241.92,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39048,
    "c": 0.19088,
    "h": 274.4
  },
  "luminance": 0.05159
}

Semantic roles & 50–950 ramp

primary
#2F2BA8
secondary
#C0C26C
accent
#E245DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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