#2F3095#2F3095

#2F3095 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.161 H 275.1°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#2F3095
RGBrgb(47, 48, 149)
HSLhsl(239, 52%, 38%)
HSVhsv(239, 68%, 58%)
CMYKcmyk(68.5%, 67.8%, 0%, 41.6%)
CIE-LABlab(26.41, 33.09, -55.51)
CIE-LCHlch(26.41, 64.62, 300.80°)
OKLaboklab(37.93% 0.0144 -0.1602)
OKLCHoklch(37.93% 0.161 275.1)
XYZxyz(7.6523, 4.8875, 28.9681)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3095 #95942F
analogous
#2F6395 #2F3095 #612F95
triadic
#2F3095 #952F30 #30952F
tetradic
#2F3095 #952F63 #95942F #2F9561
square
#2F3095 #952F63 #95942F #2F9561
split-complementary
#2F3095 #95612F #63952F
monochromatic
#121238 #202166 #2F3095 #3F40C2 #6D6ED1

Accessibility & contrast

On white

10.62
#2F3095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F3095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3095
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3095#FFFFFF#000000##FFFFFF
##2F30951.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f3095;
/* rgb */ color: rgb(47, 48, 149);
/* oklch */ color: oklch(37.9% 0.161 275.1);
Tailwind
colors: {
  custom: {
    50: '#7569b5',
    500: '#2f3095',
    950: '#000000',
  },
}
SCSS
$custom: #2f3095;
$custom-light: #7569b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3095",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 149
  },
  "hsl": {
    "h": 239.412,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37931,
    "c": 0.16088,
    "h": 275.1
  },
  "luminance": 0.04888
}

Semantic roles & 50–950 ramp

primary
#2F3095
secondary
#B8B867
accent
#DA4CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F3095

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

Preview Lab → · Contrast checker → · Palette generator →

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