#2F33A6#2F33A6

#2F33A6 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.180 H 273.3°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2F33A6
RGBrgb(47, 51, 166)
HSLhsl(238, 56%, 42%)
HSVhsv(238, 72%, 65%)
CMYKcmyk(71.7%, 69.3%, 0%, 34.9%)
CIE-LABlab(28.71, 37.18, -62.09)
CIE-LCHlch(28.71, 72.37, 300.91°)
OKLaboklab(40.08% 0.0103 -0.1795)
OKLCHoklch(40.08% 0.18 273.3)
XYZxyz(9.2367, 5.7243, 36.6871)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F33A6 #A6A22F
analogous
#2F6FA6 #2F33A6 #672FA6
triadic
#2F33A6 #A62F33 #33A62F
tetradic
#2F33A6 #A62F6F #A6A22F #2FA667
square
#2F33A6 #A62F6F #A6A22F #2FA667
split-complementary
#2F33A6 #A6672F #6FA62F
monochromatic
#141647 #212476 #2F33A6 #474CCB #777AD8

Accessibility & contrast

On white

9.79
#2F33A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F33A6
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F33A6#FFFFFF#000000##FFFFFF
##2F33A61.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f33a6;
/* rgb */ color: rgb(47, 51, 166);
/* oklch */ color: oklch(40.1% 0.180 273.3);
Tailwind
colors: {
  custom: {
    50: '#796bc1',
    500: '#2f33a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f33a6;
$custom-light: #796bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f33a6",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 166
  },
  "hsl": {
    "h": 237.983,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4008,
    "c": 0.1798,
    "h": 273.3
  },
  "luminance": 0.05725
}

Semantic roles & 50–950 ramp

primary
#2F33A6
secondary
#C1BE70
accent
#DA49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F33A6

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

Preview Lab → · Contrast checker → · Palette generator →

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