#2F33A3#2F33A3

#2F33A3 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.8% C 0.176 H 273.5°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#2F33A3
RGBrgb(47, 51, 163)
HSLhsl(238, 55%, 41%)
HSVhsv(238, 71%, 64%)
CMYKcmyk(71.2%, 68.7%, 0%, 36.1%)
CIE-LABlab(28.42, 36.13, -60.75)
CIE-LCHlch(28.42, 70.68, 300.74°)
OKLaboklab(39.79% 0.0107 -0.1756)
OKLCHoklch(39.79% 0.176 273.5)
XYZxyz(8.9648, 5.6155, 35.2547)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F33A3 #A39F2F
analogous
#2F6DA3 #2F33A3 #652FA3
triadic
#2F33A3 #A32F33 #33A32F
tetradic
#2F33A3 #A32F6D #A39F2F #2FA365
square
#2F33A3 #A32F6D #A39F2F #2FA365
split-complementary
#2F33A3 #A3652F #6DA32F
monochromatic
#141544 #212473 #2F33A3 #464ACA #7579D7

Accessibility & contrast

On white

9.89
#2F33A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2F33A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F33A3
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F33A3#FFFFFF#000000##FFFFFF
##2F33A31.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A6
Deuteranopia (green-blind)
#003EA1
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f33a3;
/* rgb */ color: rgb(47, 51, 163);
/* oklch */ color: oklch(39.8% 0.176 273.5);
Tailwind
colors: {
  custom: {
    50: '#786bbf',
    500: '#2f33a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f33a3;
$custom-light: #786bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f33a3",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 163
  },
  "hsl": {
    "h": 237.931,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39787,
    "c": 0.1759,
    "h": 273.5
  },
  "luminance": 0.05616
}

Semantic roles & 50–950 ramp

primary
#2F33A3
secondary
#BFBC6F
accent
#D949DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F33A3

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

Preview Lab → · Contrast checker → · Palette generator →

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