#3138AF#3138AF

#3138AF is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.185 H 272.6°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#3138AF
RGBrgb(49, 56, 175)
HSLhsl(237, 56%, 44%)
HSVhsv(237, 72%, 69%)
CMYKcmyk(72%, 68%, 0%, 31.4%)
CIE-LABlab(30.82, 37.46, -64.01)
CIE-LCHlch(30.82, 74.17, 300.34°)
OKLaboklab(41.9% 0.0084 -0.1851)
OKLCHoklch(41.9% 0.185 272.6)
XYZxyz(10.4161, 6.5754, 41.2694)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138AF #AFA831
analogous
#3177AF #3138AF #6931AF
triadic
#3138AF #AF3138 #38AF31
tetradic
#3138AF #AF3177 #AFA831 #31AF69
square
#3138AF #AF3177 #AFA831 #31AF69
split-complementary
#3138AF #AF6931 #77AF31
monochromatic
#16194F #24297F #3138AF #4F56CE #7F84DB

Accessibility & contrast

On white

9.07
#3138AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#3138AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138AF
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138AF#FFFFFF#000000##FFFFFF
##3138AF1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3138af;
/* rgb */ color: rgb(49, 56, 175);
/* oklch */ color: oklch(41.9% 0.185 272.6);
Tailwind
colors: {
  custom: {
    50: '#7c6fc8',
    500: '#3138af',
    950: '#000000',
  },
}
SCSS
$custom: #3138af;
$custom-light: #7c6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#3138af",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 236.667,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.419,
    "c": 0.18525,
    "h": 272.6
  },
  "luminance": 0.06576
}

Semantic roles & 50–950 ramp

primary
#3138AF
secondary
#C4C078
accent
#D748E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3138AF

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

Preview Lab → · Contrast checker → · Palette generator →

#3138AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva