#2F33A9#2F33A9

#2F33A9 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.184 H 273.1°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#2F33A9
RGBrgb(47, 51, 169)
HSLhsl(238, 56%, 42%)
HSVhsv(238, 72%, 66%)
CMYKcmyk(72.2%, 69.8%, 0%, 33.7%)
CIE-LABlab(28.99, 38.23, -63.42)
CIE-LCHlch(28.99, 74.05, 301.08°)
OKLaboklab(40.38% 0.01 -0.1834)
OKLCHoklch(40.38% 0.184 273.1)
XYZxyz(9.5151, 5.8356, 38.1534)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F33A9 #A9A52F
analogous
#2F70A9 #2F33A9 #682FA9
triadic
#2F33A9 #A92F33 #33A92F
tetradic
#2F33A9 #A92F70 #A9A52F #2FA968
square
#2F33A9 #A92F70 #A9A52F #2FA968
split-complementary
#2F33A9 #A9682F #70A92F
monochromatic
#141649 #222579 #2F33A9 #494DCC #797CDA

Accessibility & contrast

On white

9.69
#2F33A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F33A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F33A9
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F33A9#FFFFFF#000000##FFFFFF
##2F33A91.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#003FA7
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f33a9;
/* rgb */ color: rgb(47, 51, 169);
/* oklch */ color: oklch(40.4% 0.184 273.1);
Tailwind
colors: {
  custom: {
    50: '#7a6bc4',
    500: '#2f33a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f33a9;
$custom-light: #7a6bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f33a9",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 169
  },
  "hsl": {
    "h": 238.033,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40375,
    "c": 0.18366,
    "h": 273.1
  },
  "luminance": 0.05837
}

Semantic roles & 50–950 ramp

primary
#2F33A9
secondary
#C2BF72
accent
#DB48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F33A9

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

Preview Lab → · Contrast checker → · Palette generator →

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