#334183#334183

#334183 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 40.0% C 0.112 H 271.5°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#334183
RGBrgb(51, 65, 131)
HSLhsl(230, 44%, 36%)
HSVhsv(230, 61%, 51%)
CMYKcmyk(61.1%, 50.4%, 0%, 48.6%)
CIE-LABlab(29.72, 15.96, -39.00)
CIE-LCHlch(29.72, 42.14, 292.26°)
OKLaboklab(40.01% 0.0029 -0.1115)
OKLCHoklch(40.01% 0.112 271.5)
XYZxyz(7.3509, 6.1225, 22.2627)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334183 #837533
analogous
#336983 #334183 #4D3383
triadic
#334183 #833341 #418333
tetradic
#334183 #833369 #837533 #33834D
square
#334183 #833369 #837533 #33834D
split-complementary
#334183 #834D33 #698333
monochromatic
#11152B #222B57 #334183 #4457AF #6B7BC5

Accessibility & contrast

On white

9.44
#334183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#334183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334183
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334183#FFFFFF#000000##FFFFFF
##3341831.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204A85
Deuteranopia (green-blind)
#124382
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334183;
/* rgb */ color: rgb(51, 65, 131);
/* oklch */ color: oklch(40.0% 0.112 271.5);
Tailwind
colors: {
  custom: {
    50: '#7275a7',
    500: '#334183',
    950: '#000000',
  },
}
SCSS
$custom: #334183;
$custom-light: #7275a7;
$custom-dark: #000000;
JSON
{
  "hex": "#334183",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 131
  },
  "hsl": {
    "h": 229.5,
    "s": 43.956,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4001,
    "c": 0.1115,
    "h": 271.5
  },
  "luminance": 0.06123
}

Semantic roles & 50–950 ramp

primary
#334183
secondary
#ADA165
accent
#BD54D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #334183

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

Preview Lab → · Contrast checker → · Palette generator →

#334183 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva