#2F33A1#2F33A1

#2F33A1 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.173 H 273.6°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2F33A1
RGBrgb(47, 51, 161)
HSLhsl(238, 55%, 41%)
HSVhsv(238, 71%, 63%)
CMYKcmyk(70.8%, 68.3%, 0%, 36.9%)
CIE-LABlab(28.23, 35.43, -59.85)
CIE-LCHlch(28.23, 69.55, 300.62°)
OKLaboklab(39.59% 0.0109 -0.1729)
OKLCHoklch(39.59% 0.173 273.6)
XYZxyz(8.7870, 5.5444, 34.3184)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F33A1 #A19D2F
analogous
#2F6CA1 #2F33A1 #642FA1
triadic
#2F33A1 #A12F33 #33A12F
tetradic
#2F33A1 #A12F6C #A19D2F #2FA164
square
#2F33A1 #A12F6C #A19D2F #2FA164
split-complementary
#2F33A1 #A1642F #6CA12F
monochromatic
#131542 #212472 #2F33A1 #4549C9 #7477D6

Accessibility & contrast

On white

9.96
#2F33A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2F33A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F33A1
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F33A1#FFFFFF#000000##FFFFFF
##2F33A11.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#003D9F
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f33a1;
/* rgb */ color: rgb(47, 51, 161);
/* oklch */ color: oklch(39.6% 0.173 273.6);
Tailwind
colors: {
  custom: {
    50: '#786bbe',
    500: '#2f33a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f33a1;
$custom-light: #786bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f33a1",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 161
  },
  "hsl": {
    "h": 237.895,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39593,
    "c": 0.17327,
    "h": 273.6
  },
  "luminance": 0.05545
}

Semantic roles & 50–950 ramp

primary
#2F33A1
secondary
#BEBB6E
accent
#D94ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F33A1

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

Preview Lab → · Contrast checker → · Palette generator →

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