#2F3E85#2F3E85

#2F3E85 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.3% C 0.120 H 270.9°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2F3E85
RGBrgb(47, 62, 133)
HSLhsl(230, 48%, 35%)
HSVhsv(230, 65%, 52%)
CMYKcmyk(64.7%, 53.4%, 0%, 47.8%)
CIE-LABlab(28.75, 17.94, -41.81)
CIE-LCHlch(28.75, 45.50, 293.23°)
OKLaboklab(39.26% 0.002 -0.1199)
OKLCHoklch(39.26% 0.12 270.9)
XYZxyz(7.1271, 5.7424, 22.9186)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E85 #85762F
analogous
#2F6985 #2F3E85 #4B2F85
triadic
#2F3E85 #852F3E #3E852F
tetradic
#2F3E85 #852F69 #85762F #2F854B
square
#2F3E85 #852F69 #85762F #2F854B
split-complementary
#2F3E85 #854B2F #69852F
monochromatic
#0F142B #1F2958 #2F3E85 #3F53B2 #6677C9

Accessibility & contrast

On white

9.77
#2F3E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2F3E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E85
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E85#FFFFFF#000000##FFFFFF
##2F3E851.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144888
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#004F5B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3e85;
/* rgb */ color: rgb(47, 62, 133);
/* oklch */ color: oklch(39.3% 0.120 270.9);
Tailwind
colors: {
  custom: {
    50: '#7173a9',
    500: '#2f3e85',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e85;
$custom-light: #7173a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e85",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 133
  },
  "hsl": {
    "h": 229.535,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39256,
    "c": 0.11989,
    "h": 270.9
  },
  "luminance": 0.05743
}

Semantic roles & 50–950 ramp

primary
#2F3E85
secondary
#B0A260
accent
#C050D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F3E85

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

Preview Lab → · Contrast checker → · Palette generator →

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