#4238AF#4238AF

#4238AF is a dark, vivid blue. Relative luminance 0.071; OKLCH L 43.1% C 0.181 H 279.3°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#4238AF
RGBrgb(66, 56, 175)
HSLhsl(245, 52%, 45%)
HSVhsv(245, 68%, 69%)
CMYKcmyk(62.3%, 68%, 0%, 31.4%)
CIE-LABlab(31.99, 39.70, -62.05)
CIE-LCHlch(31.99, 73.66, 302.61°)
OKLaboklab(43.05% 0.0294 -0.1789)
OKLCHoklch(43.05% 0.181 279.3)
XYZxyz(11.3963, 7.0809, 41.3153)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238AF #A5AF38
analogous
#3869AF #4238AF #7D38AF
triadic
#4238AF #AF4238 #38AF42
tetradic
#4238AF #AF3869 #A5AF38 #38AF7D
square
#4238AF #AF3869 #A5AF38 #38AF7D
split-complementary
#4238AF #AF7D38 #69AF38
monochromatic
#1F1A52 #312981 #4238AF #635ACA #8F88D9

Accessibility & contrast

On white

8.69
#4238AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4238AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238AF
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238AF#FFFFFF#000000##FFFFFF
##4238AF1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4238af;
/* rgb */ color: rgb(66, 56, 175);
/* oklch */ color: oklch(43.1% 0.181 279.3);
Tailwind
colors: {
  custom: {
    50: '#8370c8',
    500: '#4238af',
    950: '#000000',
  },
}
SCSS
$custom: #4238af;
$custom-light: #8370c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4238af",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 245.042,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43051,
    "c": 0.18126,
    "h": 279.3
  },
  "luminance": 0.07082
}

Semantic roles & 50–950 ramp

primary
#4238AF
secondary
#BDC380
accent
#DB4DCF
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4238AF

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

Preview Lab → · Contrast checker → · Palette generator →

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