#252FAF#252FAF

#252FAF is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.198 H 270.1°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#252FAF
RGBrgb(37, 47, 175)
HSLhsl(236, 65%, 42%)
HSVhsv(236, 79%, 69%)
CMYKcmyk(78.9%, 73.1%, 0%, 31.4%)
CIE-LABlab(28.17, 41.78, -68.40)
CIE-LCHlch(28.17, 80.15, 301.42°)
OKLaboklab(39.82% 0.0003 -0.1981)
OKLCHoklch(39.82% 0.198 270.1)
XYZxyz(9.5147, 5.5204, 41.1132)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252FAF #AFA525
analogous
#2574AF #252FAF #6025AF
triadic
#252FAF #AF252F #2FAF25
tetradic
#252FAF #AF2574 #AFA525 #25AF60
square
#252FAF #AF2574 #AFA525 #25AF60
split-complementary
#252FAF #AF6025 #74AF25
monochromatic
#10144A #1A217C #252FAF #3C47D6 #6E76E0

Accessibility & contrast

On white

9.98
#252FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#252FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252FAF
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252FAF#FFFFFF#000000##FFFFFF
##252FAF1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #252faf;
/* rgb */ color: rgb(37, 47, 175);
/* oklch */ color: oklch(39.8% 0.198 270.1);
Tailwind
colors: {
  custom: {
    50: '#7869c8',
    500: '#252faf',
    950: '#000000',
  },
}
SCSS
$custom: #252faf;
$custom-light: #7869c8;
$custom-dark: #000000;
JSON
{
  "hex": "#252faf",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 235.652,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39815,
    "c": 0.19811,
    "h": 270.1
  },
  "luminance": 0.05521
}

Semantic roles & 50–950 ramp

primary
#252FAF
secondary
#C7C069
accent
#DC40E8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #252FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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