#2F33A7#2F33A7

#2F33A7 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.2% C 0.181 H 273.2°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2F33A7
RGBrgb(47, 51, 167)
HSLhsl(238, 56%, 42%)
HSVhsv(238, 72%, 65%)
CMYKcmyk(71.9%, 69.5%, 0%, 34.5%)
CIE-LABlab(28.80, 37.53, -62.54)
CIE-LCHlch(28.80, 72.93, 300.97°)
OKLaboklab(40.18% 0.0102 -0.1808)
OKLCHoklch(40.18% 0.181 273.2)
XYZxyz(9.3288, 5.7611, 37.1721)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F33A7 #A7A32F
analogous
#2F6FA7 #2F33A7 #672FA7
triadic
#2F33A7 #A72F33 #33A72F
tetradic
#2F33A7 #A72F6F #A7A32F #2FA767
square
#2F33A7 #A72F6F #A7A32F #2FA767
split-complementary
#2F33A7 #A7672F #6FA72F
monochromatic
#141647 #222477 #2F33A7 #484CCB #787BD9

Accessibility & contrast

On white

9.76
#2F33A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2F33A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F33A7
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F33A7#FFFFFF#000000##FFFFFF
##2F33A71.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#003EA5
Tritanopia (blue-blind)
#005369
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f33a7;
/* rgb */ color: rgb(47, 51, 167);
/* oklch */ color: oklch(40.2% 0.181 273.2);
Tailwind
colors: {
  custom: {
    50: '#796bc2',
    500: '#2f33a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f33a7;
$custom-light: #796bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f33a7",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 167
  },
  "hsl": {
    "h": 238,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40178,
    "c": 0.18109,
    "h": 273.2
  },
  "luminance": 0.05762
}

Semantic roles & 50–950 ramp

primary
#2F33A7
secondary
#C1BE71
accent
#DA48DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2F33A7

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

Preview Lab → · Contrast checker → · Palette generator →

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