#2F3EC9#2F3EC9

#2F3EC9 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.3% C 0.212 H 270.1°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#2F3EC9
RGBrgb(47, 62, 201)
HSLhsl(234, 62%, 49%)
HSVhsv(234, 77%, 79%)
CMYKcmyk(76.6%, 69.2%, 0%, 21.2%)
CIE-LABlab(34.53, 42.65, -73.25)
CIE-LCHlch(34.53, 84.76, 300.21°)
OKLaboklab(45.3% 0.0003 -0.2121)
OKLCHoklch(45.3% 0.212 270.1)
XYZxyz(13.4339, 8.2651, 56.1343)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3EC9 #C9BA2F
analogous
#2F8BC9 #2F3EC9 #6D2FC9
triadic
#2F3EC9 #C92F3E #3EC92F
tetradic
#2F3EC9 #C92F8B #C9BA2F #2FC96D
square
#2F3EC9 #C92F8B #C9BA2F #2FC96D
split-complementary
#2F3EC9 #C96D2F #8BC92F
monochromatic
#181F66 #232F97 #2F3EC9 #5C68D9 #8E96E5

Accessibility & contrast

On white

7.91
#2F3EC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2F3EC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3EC9
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3EC9#FFFFFF#000000##FFFFFF
##2F3EC91.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CD
Deuteranopia (green-blind)
#004AC6
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f3ec9;
/* rgb */ color: rgb(47, 62, 201);
/* oklch */ color: oklch(45.3% 0.212 270.1);
Tailwind
colors: {
  custom: {
    50: '#8074db',
    500: '#2f3ec9',
    950: '#000000',
  },
}
SCSS
$custom: #2f3ec9;
$custom-light: #8074db;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3ec9",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 201
  },
  "hsl": {
    "h": 234.156,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45302,
    "c": 0.21206,
    "h": 270.1
  },
  "luminance": 0.08267
}

Semantic roles & 50–950 ramp

primary
#2F3EC9
secondary
#CFC885
accent
#D543E5
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2F3EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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