#2F2F90#2F2F90

#2F2F90 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.155 H 275.8°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2F2F90
RGBrgb(47, 47, 144)
HSLhsl(240, 51%, 37%)
HSVhsv(240, 67%, 56%)
CMYKcmyk(67.4%, 67.4%, 0%, 43.5%)
CIE-LABlab(25.71, 31.96, -53.57)
CIE-LCHlch(25.71, 62.38, 300.82°)
OKLaboklab(37.28% 0.0157 -0.1546)
OKLCHoklch(37.28% 0.155 275.8)
XYZxyz(7.2212, 4.6504, 26.8972)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F90 #90902F
analogous
#2F6090 #2F2F90 #602F90
triadic
#2F2F90 #902F2F #2F902F
tetradic
#2F2F90 #902F60 #90902F #2F9060
square
#2F2F90 #902F60 #90902F #2F9060
split-complementary
#2F2F90 #90602F #60902F
monochromatic
#111134 #202062 #2F2F90 #3E3EBE #6B6BCF

Accessibility & contrast

On white

10.88
#2F2F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F2F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F90
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F90#FFFFFF#000000##FFFFFF
##2F2F901.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004193
Deuteranopia (green-blind)
#00398E
Tritanopia (blue-blind)
#00485B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2f90;
/* rgb */ color: rgb(47, 47, 144);
/* oklch */ color: oklch(37.3% 0.155 275.8);
Tailwind
colors: {
  custom: {
    50: '#7468b1',
    500: '#2f2f90',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f90;
$custom-light: #7468b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f90",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 240,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37283,
    "c": 0.15536,
    "h": 275.8
  },
  "luminance": 0.04651
}

Semantic roles & 50–950 ramp

primary
#2F2F90
secondary
#B6B665
accent
#DA4EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F2F90

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

Preview Lab → · Contrast checker → · Palette generator →

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