#2F33AA#2F33AA

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

Color values

HEX#2F33AA
RGBrgb(47, 51, 170)
HSLhsl(238, 57%, 43%)
HSVhsv(238, 72%, 67%)
CMYKcmyk(72.4%, 70%, 0%, 33.3%)
CIE-LABlab(29.09, 38.57, -63.87)
CIE-LCHlch(29.09, 74.61, 301.13°)
OKLaboklab(40.47% 0.0098 -0.1847)
OKLCHoklch(40.47% 0.185 273)
XYZxyz(9.6094, 5.8733, 38.6497)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F33AA #AAA62F
analogous
#2F70AA #2F33AA #692FAA
triadic
#2F33AA #AA2F33 #33AA2F
tetradic
#2F33AA #AA2F70 #AAA62F #2FAA69
square
#2F33AA #AA2F70 #AAA62F #2FAA69
split-complementary
#2F33AA #AA692F #70AA2F
monochromatic
#14164A #22257A #2F33AA #494ECD #797CDA

Accessibility & contrast

On white

9.66
#2F33AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F33AA
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F33AA#FFFFFF#000000##FFFFFF
##2F33AA1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#003FA8
Tritanopia (blue-blind)
#00546A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f33aa;
/* rgb */ color: rgb(47, 51, 170);
/* oklch */ color: oklch(40.5% 0.185 273.0);
Tailwind
colors: {
  custom: {
    50: '#7a6bc4',
    500: '#2f33aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f33aa;
$custom-light: #7a6bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f33aa",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 170
  },
  "hsl": {
    "h": 238.049,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40474,
    "c": 0.18494,
    "h": 273
  },
  "luminance": 0.05874
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F33AA

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

Preview Lab → · Contrast checker → · Palette generator →

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