#2F33AB#2F33AB

#2F33AB is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.6% C 0.186 H 273.0°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#2F33AB
RGBrgb(47, 51, 171)
HSLhsl(238, 57%, 43%)
HSVhsv(238, 73%, 67%)
CMYKcmyk(72.5%, 70.2%, 0%, 32.9%)
CIE-LABlab(29.19, 38.92, -64.31)
CIE-LCHlch(29.19, 75.17, 301.18°)
OKLaboklab(40.57% 0.0097 -0.186)
OKLCHoklch(40.57% 0.186 273)
XYZxyz(9.7043, 5.9113, 39.1497)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F33AB #ABA72F
analogous
#2F71AB #2F33AB #692FAB
triadic
#2F33AB #AB2F33 #33AB2F
tetradic
#2F33AB #AB2F71 #ABA72F #2FAB69
square
#2F33AB #AB2F71 #ABA72F #2FAB69
split-complementary
#2F33AB #AB692F #71AB2F
monochromatic
#15164B #22257B #2F33AB #4A4ECD #7A7DDA

Accessibility & contrast

On white

9.62
#2F33AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F33AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F33AB
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F33AB#FFFFFF#000000##FFFFFF
##2F33AB1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#003FA9
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f33ab;
/* rgb */ color: rgb(47, 51, 171);
/* oklch */ color: oklch(40.6% 0.186 273.0);
Tailwind
colors: {
  custom: {
    50: '#7a6bc5',
    500: '#2f33ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f33ab;
$custom-light: #7a6bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f33ab",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 171
  },
  "hsl": {
    "h": 238.065,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40573,
    "c": 0.18622,
    "h": 273
  },
  "luminance": 0.05912
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F33AB

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

Preview Lab → · Contrast checker → · Palette generator →

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