#2F317B#2F317B

#2F317B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.123 H 277.0°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2F317B
RGBrgb(47, 49, 123)
HSLhsl(238, 45%, 33%)
HSVhsv(238, 62%, 48%)
CMYKcmyk(61.8%, 60.2%, 0%, 51.8%)
CIE-LABlab(24.42, 23.13, -42.55)
CIE-LCHlch(24.42, 48.43, 298.53°)
OKLaboklab(35.77% 0.0151 -0.1222)
OKLCHoklch(35.77% 0.123 277)
XYZxyz(5.8446, 4.2306, 19.2436)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F317B #7B792F
analogous
#2F577B #2F317B #532F7B
triadic
#2F317B #7B2F31 #317B2F
tetradic
#2F317B #7B2F57 #7B792F #2F7B53
square
#2F317B #7B2F57 #7B792F #2F7B53
split-complementary
#2F317B #7B532F #577B2F
monochromatic
#0D0E22 #1E1F4F #2F317B #4043A7 #6264C3

Accessibility & contrast

On white

11.37
#2F317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F317B
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F317B#FFFFFF#000000##FFFFFF
##2F317B1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f317b;
/* rgb */ color: rgb(47, 49, 123);
/* oklch */ color: oklch(35.8% 0.123 277.0);
Tailwind
colors: {
  custom: {
    50: '#7069a2',
    500: '#2f317b',
    950: '#000000',
  },
}
SCSS
$custom: #2f317b;
$custom-light: #7069a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f317b",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 238.421,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35772,
    "c": 0.12311,
    "h": 277
  },
  "luminance": 0.04231
}

Semantic roles & 50–950 ramp

primary
#2F317B
secondary
#AAA85C
accent
#D153D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F317B

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

Preview Lab → · Contrast checker → · Palette generator →

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