#313A7B#313A7B

#313A7B is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.8% C 0.110 H 274.0°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#313A7B
RGBrgb(49, 58, 123)
HSLhsl(233, 43%, 34%)
HSVhsv(233, 60%, 48%)
CMYKcmyk(60.2%, 52.8%, 0%, 51.8%)
CIE-LABlab(27.04, 17.40, -38.30)
CIE-LCHlch(27.04, 42.07, 294.43°)
OKLaboklab(37.77% 0.0077 -0.1095)
OKLCHoklch(37.77% 0.11 274)
XYZxyz(6.3537, 5.1087, 19.3863)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A7B #7B7231
analogous
#315F7B #313A7B #4D317B
triadic
#313A7B #7B313A #3A7B31
tetradic
#313A7B #7B315F #7B7231 #317B4D
square
#313A7B #7B315F #7B7231 #317B4D
split-complementary
#313A7B #7B4D31 #5F7B31
monochromatic
#0E1123 #20254F #313A7B #424FA7 #6570C2

Accessibility & contrast

On white

10.39
#313A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#313A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A7B
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A7B#FFFFFF#000000##FFFFFF
##313A7B1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437D
Deuteranopia (green-blind)
#083D7A
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313a7b;
/* rgb */ color: rgb(49, 58, 123);
/* oklch */ color: oklch(37.8% 0.110 274.0);
Tailwind
colors: {
  custom: {
    50: '#7070a2',
    500: '#313a7b',
    950: '#000000',
  },
}
SCSS
$custom: #313a7b;
$custom-light: #7070a2;
$custom-dark: #000000;
JSON
{
  "hex": "#313a7b",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 123
  },
  "hsl": {
    "h": 232.703,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37772,
    "c": 0.10982,
    "h": 274
  },
  "luminance": 0.05109
}

Semantic roles & 50–950 ramp

primary
#313A7B
secondary
#A9A05F
accent
#C355D3
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313A7B

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

Preview Lab → · Contrast checker → · Palette generator →

#313A7B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva