#2F3097#2F3097

#2F3097 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.164 H 275.0°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#2F3097
RGBrgb(47, 48, 151)
HSLhsl(239, 53%, 39%)
HSVhsv(239, 69%, 59%)
CMYKcmyk(68.9%, 68.2%, 0%, 40.8%)
CIE-LABlab(26.60, 33.80, -56.43)
CIE-LCHlch(26.60, 65.78, 300.92°)
OKLaboklab(38.12% 0.0142 -0.163)
OKLCHoklch(38.12% 0.164 275)
XYZxyz(7.8133, 4.9519, 29.8162)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3097 #97962F
analogous
#2F6497 #2F3097 #622F97
triadic
#2F3097 #972F30 #30972F
tetradic
#2F3097 #972F64 #97962F #2F9762
square
#2F3097 #972F64 #97962F #2F9762
split-complementary
#2F3097 #97622F #64972F
monochromatic
#12123A #202168 #2F3097 #4041C3 #6E6FD2

Accessibility & contrast

On white

10.55
#2F3097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F3097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3097
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3097#FFFFFF#000000##FFFFFF
##2F30971.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3097;
/* rgb */ color: rgb(47, 48, 151);
/* oklch */ color: oklch(38.1% 0.164 275.0);
Tailwind
colors: {
  custom: {
    50: '#7669b7',
    500: '#2f3097',
    950: '#000000',
  },
}
SCSS
$custom: #2f3097;
$custom-light: #7669b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3097",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 151
  },
  "hsl": {
    "h": 239.423,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38122,
    "c": 0.16356,
    "h": 275
  },
  "luminance": 0.04953
}

Semantic roles & 50–950 ramp

primary
#2F3097
secondary
#B9B968
accent
#DB4CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F3097

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

Preview Lab → · Contrast checker → · Palette generator →

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