#2F33A5#2F33A5

#2F33A5 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.178 H 273.4°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#2F33A5
RGBrgb(47, 51, 165)
HSLhsl(238, 56%, 42%)
HSVhsv(238, 72%, 65%)
CMYKcmyk(71.5%, 69.1%, 0%, 35.3%)
CIE-LABlab(28.61, 36.83, -61.64)
CIE-LCHlch(28.61, 71.81, 300.86°)
OKLaboklab(39.98% 0.0105 -0.1782)
OKLCHoklch(39.98% 0.179 273.4)
XYZxyz(9.1454, 5.6877, 36.2059)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F33A5 #A5A12F
analogous
#2F6EA5 #2F33A5 #662FA5
triadic
#2F33A5 #A52F33 #33A52F
tetradic
#2F33A5 #A52F6E #A5A12F #2FA566
square
#2F33A5 #A52F6E #A5A12F #2FA566
split-complementary
#2F33A5 #A5662F #6EA52F
monochromatic
#141646 #212475 #2F33A5 #474BCB #767AD8

Accessibility & contrast

On white

9.82
#2F33A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F33A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F33A5
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F33A5#FFFFFF#000000##FFFFFF
##2F33A51.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#003EA3
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f33a5;
/* rgb */ color: rgb(47, 51, 165);
/* oklch */ color: oklch(40.0% 0.178 273.4);
Tailwind
colors: {
  custom: {
    50: '#796bc1',
    500: '#2f33a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f33a5;
$custom-light: #796bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f33a5",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 165
  },
  "hsl": {
    "h": 237.966,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39982,
    "c": 0.1785,
    "h": 273.4
  },
  "luminance": 0.05689
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F33A5

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

Preview Lab → · Contrast checker → · Palette generator →

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