#312FAF#312FAF

#312FAF is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.195 H 274.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#312FAF
RGBrgb(49, 47, 175)
HSLhsl(241, 58%, 44%)
HSVhsv(241, 73%, 69%)
CMYKcmyk(72%, 73.1%, 0%, 31.4%)
CIE-LABlab(28.85, 42.86, -67.25)
CIE-LCHlch(28.85, 79.75, 302.51°)
OKLaboklab(40.49% 0.0137 -0.1945)
OKLCHoklch(40.49% 0.195 274)
XYZxyz(10.0184, 5.7802, 41.1368)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FAF #ADAF2F
analogous
#2F6DAF #312FAF #712FAF
triadic
#312FAF #AF312F #2FAF31
tetradic
#312FAF #AF2F6D #ADAF2F #2FAF71
square
#312FAF #AF2F6D #ADAF2F #2FAF71
split-complementary
#312FAF #AF712F #6DAF2F
monochromatic
#16154F #23227F #312FAF #4E4CCF #7E7CDC

Accessibility & contrast

On white

9.74
#312FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#312FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FAF
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FAF#FFFFFF#000000##FFFFFF
##312FAF1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312faf;
/* rgb */ color: rgb(49, 47, 175);
/* oklch */ color: oklch(40.5% 0.195 274.0);
Tailwind
colors: {
  custom: {
    50: '#7c69c8',
    500: '#312faf',
    950: '#000000',
  },
}
SCSS
$custom: #312faf;
$custom-light: #7c69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#312faf",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 240.938,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40485,
    "c": 0.19499,
    "h": 274
  },
  "luminance": 0.05781
}

Semantic roles & 50–950 ramp

primary
#312FAF
secondary
#C3C475
accent
#E147DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312FAF

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

Preview Lab → · Contrast checker → · Palette generator →

#312FAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva