#2F33B5#2F33B5

#2F33B5 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.6% C 0.199 H 272.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2F33B5
RGBrgb(47, 51, 181)
HSLhsl(238, 59%, 45%)
HSVhsv(238, 74%, 71%)
CMYKcmyk(74%, 71.8%, 0%, 29%)
CIE-LABlab(30.17, 42.35, -68.66)
CIE-LCHlch(30.17, 80.67, 301.67°)
OKLaboklab(41.58% 0.0083 -0.1986)
OKLCHoklch(41.58% 0.199 272.4)
XYZxyz(10.6938, 6.3071, 44.3609)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F33B5 #B5B12F
analogous
#2F76B5 #2F33B5 #6E2FB5
triadic
#2F33B5 #B52F33 #33B52F
tetradic
#2F33B5 #B52F76 #B5B12F #2FB56E
square
#2F33B5 #B52F76 #B5B12F #2FB56E
split-complementary
#2F33B5 #B56E2F #76B52F
monochromatic
#161854 #222584 #2F33B5 #5054D1 #8083DE

Accessibility & contrast

On white

9.29
#2F33B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F33B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F33B5
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F33B5#FFFFFF#000000##FFFFFF
##2F33B51.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0041B3
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f33b5;
/* rgb */ color: rgb(47, 51, 181);
/* oklch */ color: oklch(41.6% 0.199 272.4);
Tailwind
colors: {
  custom: {
    50: '#7d6ccc',
    500: '#2f33b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f33b5;
$custom-light: #7d6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f33b5",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 181
  },
  "hsl": {
    "h": 238.209,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41579,
    "c": 0.19882,
    "h": 272.4
  },
  "luminance": 0.06308
}

Semantic roles & 50–950 ramp

primary
#2F33B5
secondary
#C7C579
accent
#DD46E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F33B5

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

Preview Lab → · Contrast checker → · Palette generator →

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