#2F3390#2F3390

#2F3390 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.0% C 0.150 H 274.7°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2F3390
RGBrgb(47, 51, 144)
HSLhsl(238, 51%, 37%)
HSVhsv(238, 67%, 56%)
CMYKcmyk(67.4%, 64.6%, 0%, 43.5%)
CIE-LABlab(26.69, 29.37, -51.97)
CIE-LCHlch(26.69, 59.70, 299.48°)
OKLaboklab(38% 0.0124 -0.1499)
OKLCHoklch(38% 0.15 274.7)
XYZxyz(7.3885, 4.9850, 26.9530)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3390 #908C2F
analogous
#2F6390 #2F3390 #5C2F90
triadic
#2F3390 #902F33 #33902F
tetradic
#2F3390 #902F63 #908C2F #2F905C
square
#2F3390 #902F63 #908C2F #2F905C
split-complementary
#2F3390 #905C2F #63902F
monochromatic
#111234 #202362 #2F3390 #3E43BE #6B6FCF

Accessibility & contrast

On white

10.51
#2F3390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F3390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3390
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3390#FFFFFF#000000##FFFFFF
##2F33901.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004393
Deuteranopia (green-blind)
#003B8E
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3390;
/* rgb */ color: rgb(47, 51, 144);
/* oklch */ color: oklch(38.0% 0.150 274.7);
Tailwind
colors: {
  custom: {
    50: '#746bb1',
    500: '#2f3390',
    950: '#000000',
  },
}
SCSS
$custom: #2f3390;
$custom-light: #746bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3390",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 144
  },
  "hsl": {
    "h": 237.526,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37996,
    "c": 0.15038,
    "h": 274.7
  },
  "luminance": 0.04986
}

Semantic roles & 50–950 ramp

primary
#2F3390
secondary
#B6B265
accent
#D44EDA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F3390

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

Preview Lab → · Contrast checker → · Palette generator →

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