#2F3885#2F3885

#2F3885 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.128 H 273.6°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#2F3885
RGBrgb(47, 56, 133)
HSLhsl(234, 48%, 35%)
HSVhsv(234, 65%, 52%)
CMYKcmyk(64.7%, 57.9%, 0%, 47.8%)
CIE-LABlab(27.09, 22.03, -44.50)
CIE-LCHlch(27.09, 49.65, 296.33°)
OKLaboklab(38.01% 0.0081 -0.1279)
OKLCHoklch(38.01% 0.128 273.6)
XYZxyz(6.8187, 5.1256, 22.8158)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3885 #857C2F
analogous
#2F6385 #2F3885 #512F85
triadic
#2F3885 #852F38 #38852F
tetradic
#2F3885 #852F63 #857C2F #2F8551
square
#2F3885 #852F63 #857C2F #2F8551
split-complementary
#2F3885 #85512F #63852F
monochromatic
#0F122B #1F2558 #2F3885 #3F4BB2 #6670C9

Accessibility & contrast

On white

10.37
#2F3885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F3885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3885
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3885#FFFFFF#000000##FFFFFF
##2F38851.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004488
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3885;
/* rgb */ color: rgb(47, 56, 133);
/* oklch */ color: oklch(38.0% 0.128 273.6);
Tailwind
colors: {
  custom: {
    50: '#716ea9',
    500: '#2f3885',
    950: '#000000',
  },
}
SCSS
$custom: #2f3885;
$custom-light: #716ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3885",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 133
  },
  "hsl": {
    "h": 233.721,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38007,
    "c": 0.12811,
    "h": 273.6
  },
  "luminance": 0.05126
}

Semantic roles & 50–950 ramp

primary
#2F3885
secondary
#B0A760
accent
#C950D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3885

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

Preview Lab → · Contrast checker → · Palette generator →

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